Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: Converting UTF8 to ANSI

by haukex (Chancellor)
on Aug 29, 2017 at 19:45 UTC ( #1198298=note: print w/replies, xml ) Need Help??

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

You may want to have a look at The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)

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).

I suspect that'll be an encoding like the one I mentioned. You could use the other module I showed, Encode::Guess, to try and find out - it's a core module, no installation necessary. Another trick is to use a character that gets encoded differently in different encodings. I like the Euro symbol ("\x{20AC}" in Perl), other than being easy to type on my keyboard, it is:

So try typing "" into Notepad, saving it, and using a hex editor to get a clue (not a definite answer) as to what encoding it is.

Minor updates.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1198298]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2020-01-28 20:53 GMT
Find Nodes?
    Voting Booth?