in reply to Handling file path with unusual characters

Corion has written a really clear description of the various issues involved with non-ascii characters and how to work with them in Perl: see Character Encodings in Perl. That version is targeted at a North American audience. If you read German, the original German version is targeted more to the European context and can be found at Charsets oder „Warum funktionieren meine Umlaute nicht?”.

Best, beth

  • Comment on Re: Handling file path with unusual characters

Replies are listed 'Best First'.
Re^2: Handling file path with unusual characters
by samuelalfred (Sexton) on Mar 31, 2011 at 12:37 UTC
    Hello,

    Thanks for the reply. I've read the article and tested the script that can be used to determined what type of encoding that is used in the environment I'm running. However, I was not able to find a single one of all encodings that produced a correct result. What to do then? If I've understood this correctly the encode command could solve my issue but I need to know which encoding to use.

    Thanks!

        I'm trying to find as much information as possible before posting a question and in this matter I'm unable to find a solution to my problem.

        I checked the links but still no luck. I feel that this is an issue that should arise rather often and therefore I hope and believe that there's an off-the-shelf solution for this. I thought that the link in the posts above would help me but the test specified there to find the encoding used was unsuccessfull.

        Anyone that have had this problem and managed to solve it?