in reply to Re^3: How to convert this to swedish characters?
in thread How to convert this to swedish characters?

You only want use encoding "utf8"; (or use utf8; for that matter) if your script is encoded in UTF-8 (the latter is one of the possible encodings for unicode). Apparently, your script is not in UTF-8, as 0xf6 for sure is the latin1 encoding of the character "ö". varian's suggestion should work if you simply remove the use encoding "utf8" (latin1 is the default encoding).

Replies are listed 'Best First'.
Re^5: How to convert this to swedish characters?
by learn_perl_se (Initiate) on Feb 08, 2007 at 14:23 UTC
    Thank You
    I just tried it without that line "use encoding" utf8",but it didn't w +ork, which means that the output was from a-z not from a-ö.