in reply to Re: Converting UTF8 to ANSI
in thread Converting UTF8 to ANSI

Thank you for your replay.

You are correct, my understanding of the differences between specific encoding form is strictly theoretical and limited at the moment, especially in the perl context (1st time I ever encounter the term BOM).
I hope to learn more about it as soon as I can.

As for what I mean by ANSI, I really don't know.
All I know is what the encoding line says when I "save as" a file with "Notepad" (Win-xp).

Unfortunately I'm currently preoccupied with the fallout of attempting to install File::BOM as you can see here.
Any assistance with this bigger issue will be most appreciated.

Replies are listed 'Best First'.
Re^3: Converting UTF8 to ANSI
by haukex (Archbishop) on Aug 29, 2017 at 19:45 UTC
Re^3: Converting UTF8 to ANSI
by AnomalousMonk (Archbishop) on Aug 29, 2017 at 19:10 UTC
    As for what I mean by ANSI, I really don't know.

    Welcome to the wonderful world of character encodings!

    What you may mean is the ASCII character encoding. This is an old, 7-bit encoding with the most significant bit (bit 7) always 0. One neat thing about the newer UTF-8 encoding (some people say it's the only neat thing) is that all valid ASCII characters are automatically valid UTF-8 characters. Unfortunately, things quickly go to pieces after that; not all valid UTF-8 characters are valid ASCII, and any mapping of UTF-8 to ASCII is totally arbitrary. Oh, well...


    Give a man a fish:  <%-{-{-{-<