String Character Length: Difference between revisions
Content deleted Content added
→[[C plus plus|C++]]: Point to C++ instead of C plus plus |
m →[[Java]]: Use Java header instead |
||
Line 214: | Line 214: | ||
length = strlen("Hello, world!") |
length = strlen("Hello, world!") |
||
== |
=={{header|Java}}== |
||
[[Category:Java]] |
|||
Java encodes strings in UTF-16, which represents each character with one or two 16-bit values. The most commonly used characters are represented by one 16-bit value, while rarer ones like some mathematical symbols are represented by two. |
Java encodes strings in UTF-16, which represents each character with one or two 16-bit values. The most commonly used characters are represented by one 16-bit value, while rarer ones like some mathematical symbols are represented by two. |