in reply to Recommended way to set the utf8 flag without altering the data
$utf8 = pack 'U0a*', $raw;
$raw = pack 'C0a*', $utf8;
Actually, that will still work on perl 5.8.x, though the few (well hidden) functions in Encode are a valid alternative. See Messing with Perl's Internals. Somehow I get the feeling they don't like you to mess with this, yourself...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recommended way to set the utf8 flag without altering the data
by borisz (Canon) on Jun 27, 2004 at 12:38 UTC |