Subject: | Encoding error |
Date: | Mon, 18 Aug 2008 14:30:17 +0200 |
To: | bug-Locale-SubCountry [...] rt.cpan.org |
From: | Benjamin Erhart <b.erhart [...] 3united.com> |
Hi!
The module file SubCountry.pm version 1.41 obtained through
sudo cpan Locale::SubCountry
actually is encoded in Windows charset CP-1252, instead of the declared
ISO-8859-1.
Trying to recode the file in ISO-8859-1 results in a error, saying some
characters cannot be converted.
I therefore would propose to encode the file in UTF-8, which should
resolve all encoding issues, especially with regard to the international
character of such a module.
perl -v:
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
uname -a:
Linux stc 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686
GNU/Linux
(Ubuntu 8.04.1)
Steps to do:
- Recode file to UTF-8 character set
- add "use utf8" after line 313
- replace line 835 like this: <?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
with kind regards,
Benjamin Erhart