in reply to can't get å,ä and ö to work with Class::PhraseBook
It might not be surprising that the conversion to utf8 is happening -- it makes things easier for multi-language text processing, in general. If you want to make sure that your final output reverts back to 8859-1, you'll probably want to use a PerlIO encoding layer on STDOUT -- like this:
Do that before you start printing any page content. (update: and hope that some clever module doesn't reset it to ":utf8" for you later on)binmode STDOUT, ":encoding(iso-8859-1)";
Alternatively, you could just "go with the flow", have your page content written as utf8 text, and change your browser to use utf8 instead of 8859-1 -- probably no code-changes needed at all if you do it that way.
(update: when I set my browser to use utf8, the OP shows the correct character in the example that the OP says is "wrong")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: can't get å,ä and ö to work with Class::PhraseBook
by Anonymous Monk on Mar 13, 2006 at 09:58 UTC | |
by boboson (Monk) on Mar 13, 2006 at 14:34 UTC | |
by boboson (Monk) on Mar 13, 2006 at 23:08 UTC |