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.


In reply to Re^2: XML File Encoding and Parsing Problem by graff
in thread XML File Encoding and Parsing Problem by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.