Java char Variable: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - ". ----" to ". ----") |
m (Text replacement - ". " to ". ") |
||
Line 11: | Line 11: | ||
<BR> | <BR> | ||
* http://download.oracle.com/javase/tutorial/i18n/text/convertintro.html | * http://download.oracle.com/javase/tutorial/i18n/text/convertintro.html | ||
** In the [[Java programming language]] [[Java char Variable|char value]]s represent [[Unicode character]]s. [[Unicode]] is a [[16-bit]] [[character encoding]] that supports the world's major languages. You can learn more about the [[Unicode standard]] at the [[Unicode Consortium]] [[Web site]]. <P> Few [[text editor]]s currently support [[Unicode text]] [[entry]]. The [[text editor]] we used to write this section's code examples supports only [[ASCII character]]s, which are limited to [[7 bits]]. To indicate [[Unicode character]]s that cannot be represented in [[ASCII]], such as [[ö]], we used the \uXXXX [[escape sequence]]. | ** In the [[Java programming language]] [[Java char Variable|char value]]s represent [[Unicode character]]s. [[Unicode]] is a [[16-bit]] [[character encoding]] that supports the world's major languages. You can learn more about the [[Unicode standard]] at the [[Unicode Consortium]] [[Web site]]. <P> Few [[text editor]]s currently support [[Unicode text]] [[entry]]. The [[text editor]] we used to write this section's code examples supports only [[ASCII character]]s, which are limited to [[7 bits]]. To indicate [[Unicode character]]s that cannot be represented in [[ASCII]], such as [[ö]], we used the \uXXXX [[escape sequence]]. | ||
---- | ---- |
Latest revision as of 12:24, 2 August 2022
See: Java Primitive Variable, char Variable, Unicode, 16-bit Unicode Character, ASCII.
References
2010
- http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
- char: The char data type is a single 16-bit Unicode character. It has a minimum value of '\u0000' (or 0) and a maximum value of '\uffff' (or 65,535 inclusive).
- http://download.oracle.com/javase/tutorial/i18n/text/convertintro.html
- In the Java programming language char values represent Unicode characters. Unicode is a 16-bit character encoding that supports the world's major languages. You can learn more about the Unicode standard at the Unicode Consortium Web site.
Few text editors currently support Unicode text entry. The text editor we used to write this section's code examples supports only ASCII characters, which are limited to 7 bits. To indicate Unicode characters that cannot be represented in ASCII, such as ö, we used the \uXXXX escape sequence.
- In the Java programming language char values represent Unicode characters. Unicode is a 16-bit character encoding that supports the world's major languages. You can learn more about the Unicode standard at the Unicode Consortium Web site.