Is there any reason to prefer UTF-16 over UTF-8?
Posted
by Oak
on Stack Overflow
See other posts from Stack Overflow
or by Oak
Published on 2010-05-29T11:27:32Z
Indexed on
2010/05/29
11:32 UTC
Read the original article
Hit count: 386
Examining the attributes of UTF-16 and UTF-8, I can't find any reason to prefer UTF-16.
However, checking out Java and C#, it looks like strings and chars there default to UTF-16. I was thinking that it might be for historic reasons, or perhaps for performance reasons, but couldn't find any information.
Anyone knows why these languages chose UTF-16? And is there any valid reason for me to do that as well?
© Stack Overflow or respective owner