in reply to [SOLVED] Unicode strings internals
By explicitly invoking encode ("UTF-8", ..., the mixed string contains bytes with the high bit set, but not UTF-specific characters. Outputting a byte string as binary is natural, but outputting a Perl string that contains wide characters does not map without specifying an encoding.
Does this clarify? If you describe the task you are trying to accomplish, we can probably help with the appropriate set of I/O specifications.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unicode strings internals
by vsespb (Chaplain) on May 10, 2013 at 17:03 UTC | |
by kennethk (Abbot) on May 10, 2013 at 17:39 UTC | |
by vsespb (Chaplain) on May 10, 2013 at 18:49 UTC | |
by kennethk (Abbot) on May 10, 2013 at 21:06 UTC | |
by vsespb (Chaplain) on May 10, 2013 at 21:30 UTC | |
|