http://www.perlmonks.org?node_id=772319


in reply to Re^17: Weird error log message
in thread Weird error log message

Ok you are right, i would be more carefull in the future, and iam happy that you are willing to give more detailed explanation when needed.

For example i did read wikipedia today on BOM definition but i didn't understand why this is usefull to exist and actually what is it anyways. Also i don't undersand the different between ANSI(which you told me this sitn an encoding) to utf8 and why the remote webserver has trouble idntifying anythign else than ANSI.

Youc an explain these to me if you like.

Replies are listed 'Best First'.
Re^19: Weird error log message
by ikegami (Patriarch) on Jun 17, 2009 at 15:01 UTC

    For example i did read wikipedia today on BOM definition but i didn't understand why this is usefull to exist and actually what is it anyways.

    Quote previously linked document (emphasis mine): While UTF-8 does not have byte order issues, a BOM encoded in UTF-8 may nonetheless be encountered. A UTF-8 BOM is explicitly allowed by the Unicode standard, but is not recommended, as it only identifies a file as UTF-8 and does not state anything about byte order."

    Also i don't undersand the different between ANSI(which you told me this sitn an encoding) to utf8 and why the remote webserver has trouble idntifying anythign else than ANSI.

    They're both character encodings, but different encodings.

      Quote previously linked document (emphasis mine): While UTF-8 does not have byte order issues, a BOM encoded in UTF-8 may nonetheless be encountered. A UTF-8 BOM is explicitly allowed by the Unicode standard, but is not recommended, as it only identifies a file as UTF-8 and does not state anything about byte order.

      I didn't understand it. What is Byte Order and why is it important?

        What is Byte Order

        "A byte-order mark [...] is used to denote the endianness of a string"

        why is it important

        "A UTF-8 BOM [...] does not state anything about byte order" since only one byte ordering is allowed for UTF-8.