D
Dan Jacobson
Why does
use HTML::Entities; use utf8; print HTML::Entities::encode_entities_numeric("\xE7\xA9\x8D");
print
ç©
i.e. three entities, instead of one?
Must I use locale;? In any particular way?
Am I to blame?
Those three bytes represent a Chinese character.
Must I explore pack()?
Not only do I wish to convert one unicode character (three bytes), but
also a whole string of them.
$ perl -v
This is perl, v5.8.0
perldoc Encode's "The UTF-8 flag" holds the answer? And that is what?
perldoc perluniintro isn't helping.
All I want to do is
$ echo '[unicode string]'|perl -plwe 'something;'
and get
大原雄馬...
Is that to much to ask?
use HTML::Entities; use utf8; print HTML::Entities::encode_entities_numeric("\xE7\xA9\x8D");
ç©
i.e. three entities, instead of one?
Must I use locale;? In any particular way?
Am I to blame?
Those three bytes represent a Chinese character.
Must I explore pack()?
Not only do I wish to convert one unicode character (three bytes), but
also a whole string of them.
$ perl -v
This is perl, v5.8.0
perldoc Encode's "The UTF-8 flag" holds the answer? And that is what?
perldoc perluniintro isn't helping.
All I want to do is
$ echo '[unicode string]'|perl -plwe 'something;'
and get
大原雄馬...
Is that to much to ask?