in reply to HTML::Entities and multi-byte characters
In my experience, HTML::Entities works just fine under Perl 5.8 with Unicode strings. The strings must be marked as Unicode, not just contain UTF-8 bytes. If the source isn't doing the conversion, you can do it manually with Encode.
print encode_entitites("a\x9B\x{263A}");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Entities and multi-byte characters
by bpphillips (Friar) on Sep 13, 2004 at 20:35 UTC | |
by iburrell (Chaplain) on Sep 13, 2004 at 22:07 UTC | |
by bpphillips (Friar) on Sep 14, 2004 at 14:31 UTC |