in reply to Unicode Pack/Unpack Woes
I advice you to write "use utf8;" at the very start of program but sometimes use local scopes with "no utf8;" when needed.
Also, you really do not need to re-implement utf8<->code-points character transformation. It is done simplier:
See "perldoc Encode" to see what I mean, it contains a lot of answers to your questions!use utf8; use Encode; my $utf8str = decode("ucs-2",$input); # or "euc-jp", depends on $input
Courage, the Cowardly Dog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Unicode Pack/Unpack Woes
by The Ninja K (Novice) on Jan 12, 2003 at 08:45 UTC |