Kelly Jones wrote:
I "cpan Text::Unidecode" on 2 machines and then ran this code:use utf8; use Text::Unidecode; print unidecode("\x{5317}\x{4EB0}")."\n"; print unidecode("\xd0\x90\xd0\xbb")."\n"; print unidecode("\xe3\x82\xa2")."\n"; On both machines, the first line correctly prints "Bei Jing", the author's test case. Second line: "Al" on one machine (correct), "DD>>" on the other. Third line: "a" on one machine (correct), "aC/" on the other. Thoughts?
By putting in "use utf8;", you sign a contract that your source file is UTF-8 encoded. Why would you need that?
-- Ruud -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
