in reply to Re: Playing with "funny" chars
in thread Playing with extended chars
My recommendation is to use perl 5.8.0 or more recent and look at perldoc Encode, perldoc open, and perldoc -f open. If tr doesn't work because you have the characters encoded in two bytes, you can do
$s = decode_utf8($s);
That will convert the string into the internal representation where characters are characters and you don't have to worry about how many bytes they need for encoding.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Playing with "funny" chars
by deibyz (Hermit) on Sep 27, 2004 at 13:31 UTC | |
by itub (Priest) on Sep 27, 2004 at 15:42 UTC |