Subject: | does not handle inlined UTF-8 |
Lingua-ZH-Romanize-Pinyin-0.12
This is perl, v5.8.7 built for i586-linux-thread-multi
Linux pc87 2.6.13-15.8-default #1 Tue Feb 7 11:07:24 UTC 2006 i686
athlon i386 GNU/Linux
Under the C<utf8> pragma, the source code is treated as UTF-8. The char
and chars methods return empty for inlined unicode strings, see attached
test case.
Subject: | linguazhromanizepinyintest.pl |
use utf8;
use Test::More tests => 2;
use Lingua::ZH::Romanize::Pinyin;
my $conv = Lingua::ZH::Romanize::Pinyin->new;
like($conv->char("ä¸"), qr/^zh.ng/, 'U+4E2D: zhÅng, or zhong1, or possibly just zhong');
like($conv->chars("æ±å"), qr/^h.n.*z/, 'U+6C49 U+5B57: hà nzi/hà n zi, or han4zi5/han4 zi5, or han4zi/han4 zi, or possibly just hanzi/han zi');