Re: Problem converting euro from windows-1252 to UTF-8 !!
- From: "Bart Van der Donck" <bart@xxxxxxxxxx>
- Date: 10 Jul 2006 03:07:20 -0700
nevosa wrote:
I am trying to convert RFC-2047 encode MIME headers to UTF-8. It is
working fine so far using the MIME::WordDecoder and Unicode::MapUTF8
CPAN packages. I have done some unit testing and it seems to work fine
except for when I try to convert windows-1252 encode euro(0x80) symbol
to UTF-8.
Subject: This sub has non-ascii chars.Pound:
?windows-1252?Q?Euro_=80_?=
In this case the conversion simply fails and what i see as output is 2
spaces (0x20 0x20).
Windows-1252 differs from "default" ISO-8859-1 by using displayable
characters rather than control characters in the 0x80-0x9F range. If
you're running *nix, Windows-1252 might not be available.
To make sure, see
http://en.wikipedia.org/wiki/Windows-1252
And then try to display the characters in the yellow squares. If
they're not correctly converted, you've found the culprit.
Hope this helps,
--
Bart
.
- Follow-Ups:
- References:
- Prev by Date: Re: converting line input into columns
- Next by Date: Inline missing with ActiveState?
- Previous by thread: Problem converting euro from windows-1252 to UTF-8 !!
- Next by thread: Re: Problem converting euro from windows-1252 to UTF-8 !!
- Index(es):
Relevant Pages
|