Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Weird encoding after grabing filenames

by Nik
on Jun 17, 2009 at 09:49 UTC ( #772306=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Weird encoding after grabing filenames
in thread Weird encoding after grabing filenames

Thank you very much that was waht i needed.

Allow me to ask this: Why only the path strings were plain ascii chars and the filenames were non-ascii which lead me to the extra use of Encode::from_to() to show it properly?

Does it has to do with the way(type of encoding) Vista encoded its filenames? And if this is the case here why encode the folders differently?


Comment on Re^4: Weird encoding after grabing filenames
Re^5: Weird encoding after grabing filenames
by ikegami (Pope) on Jun 17, 2009 at 14:13 UTC

    Because some characters are encoded the same in both ISO-8859-7 and UTF-8. So even though you program was buggy, you still happened to get some correct output.

      But the data that actually got prined correctly weren't greek characters. They were data composed of english letters like "/home/nikos/public_html/data/text".

        Despite the "but", that doesn't contradict what I said. Those are characters that are encoded the same in both ISO-8859-7 and UTF-8.

        Specifically, U+0020..U+007E are encoded the same in ASCII, ISO-8859-* and UTF-8.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-07-14 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls