UTF-16 Character Encoding of java

后端 未结 5 1163
借酒劲吻你
借酒劲吻你 2020-12-31 06:26

I was trying to understand character encoding in Java. Characters in Java are being stored in 16 bits using UTF-16 encoding. So while i am converting a string containing 6 c

5条回答
  •  清酒与你
    2020-12-31 07:07

    I think this will help: The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) by Joel Spolsky

    And this will help as well: "UTF-16 (16-bit Unicode Transformation Format) is a character encoding [...] The encoding is a variable-length encoding as code points are encoded with one or two 16-bit code units." (from Wikipedia)

提交回复
热议问题