[Linux-disciples] Converting to ISO-8859-1
Stephen R Laniel
steve at laniels.org
Mon Jun 19 15:40:34 EDT 2006
Does anyone have much i18n experience? I'm converting from
what I suspect is UTF-16 -- it's a Windows document -- for
import into Zope, which needs ISO-8859-1. When I try to
write out a file in Perl using the latter, I get a number of
errors like so:
"\x{2019}" does not map to iso-8859-1 at /home/slaniel/bin/lanielLib.pm line 585.
"\x{201c}" does not map to iso-8859-1 at /home/slaniel/bin/lanielLib.pm line 585.
"\x{201d}" does not map to iso-8859-1 at /home/slaniel/bin/lanielLib.pm line 585.
Those \x{...} blocks are just Unicode code points, for
little things like open double quotes and apostrophes. I'm
puzzled why Perl wouldn't know how to get that code point
out in ISO-8859-1. Any idea?
--
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060619/1f90107b/attachment.pgp
More information about the Linux-disciples
mailing list