in reply to Re: can't get å,ä and ö to work with Class::PhraseBook
in thread can't get å,ä and ö to work with Class::PhraseBook

No, graff, you have the encodings the wrong way around.

boboson, you have UTF-8 in the XML file, and it is wrongly treated as 8859-1. Ã is symptomatic for this common Unicode mess-up. You have to tell the user agent (web browser) that you deliver content in UTF-8:

$webapp->header_add( -type => 'text/html; charset=utf-8' );

Replies are listed 'Best First'.
Re^3: can't get å,ä and ö to work with Class::PhraseBook
by boboson (Monk) on Mar 13, 2006 at 14:34 UTC
    Thanks! now I am back on track!
Re^3: can't get å,ä and ö to work with Class::PhraseBook
by boboson (Monk) on Mar 13, 2006 at 23:08 UTC
    I thought I was back on track, but implementing your suggestion just gave me some other problems.
    It now works with the text from the XML file, but the rest of the webpage text now looks something like this:
    Om nŠ­n av de obligatoriska uppgifterna inte visar sig st䭭a och + du inte r䴴ar till detta p¶Âppmaning fr³èoss sˆîommer ditt kon +to att raderas.
    I know I can get rid of these strange signs by using "& aring;" = å "& auml;" = ä and "& ouml;" = ö, but there must be some other way around all this? Is there a way to put codes for å, ä and ö in the XML file? or is there any other solution?