I have a datasource that is supposed to be an utf-8 xml file, generated on the fly. The file has umlauts (å,ä,ö) in it. I fetch the source via LWP::Simple, parse it via XML::Bare, and print it on a webpage with iso-8859-1 encoding. The result is "Träningskläder" (should be "Träningskläder". I decode it using
, then I get Tr?ningskl?der. Any idea what I'm doing wrong?