in reply to Re: XML File Encoding and Parsing Problem
in thread XML File Encoding and Parsing Problem

If I understand what I think you're trying to say here:
you are going to have problems (unless every character you use happens to hold the same location)

that is actually a little misleading. UTF-8 encoding is designed such that, in order for "every character you use ... to hold the same location", the file must consist entirely of byte values below 0x80 -- that is, it must be a pure ASCII file. (And if that is the case, then technically, the file is UTF-8, because ASCII data is a proper subset of UTF-8 data.)

If text is encoded in any character set other than utf8 (e.g. any ISO-8859, or CP12*, or whatever) and includes anything outside the ASCII 7-bit table, then there is no way whatsoever, if you try to treat that data as utf8, for any of those wide characters to come out as "the same character".

In other words, there is no wide character defined in utf8 such that the sequence of bytes representing that utf8 character is identical to the bytes representing the same (linguistic) character in any non-unicode encoding.

  • Comment on Re^2: XML File Encoding and Parsing Problem