Web lists-archives.com

Re: Invalid UTF-8 byte?




On 05/04/18 02:09, tomas@xxxxxxxxxx wrote:
Try UTF-16, what Microsoft (and a couple of years ago Apple) love to
call "Unicode": in more "Western" contexts every second byte is NULL!

The Java platform uses UTF-16 internally:

"The char data type (and therefore the value that a Character object encapsulates) are based on the original Unicode specification, which defined characters as fixed-width 16-bit entities."
https://docs.oracle.com/javase/8/docs/api/java/lang/Character.html

Kind regards,

--
Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
Director
Transient Software Limited <https://transient.nz/>
New Zealand