in reply to Re: Read and write UTF-8
in thread Read and write UTF-8
You talk about characters - when using UTF-8, length and substr count characters, not octets, so in the output, you can find more than 21 octets. If you were already talking about characters, not octets, can you please show some short example input that exhibits the problem, preferrably together with a hexdump of the relevant portion of the file?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read and write UTF-8
by choroba (Cardinal) on Oct 15, 2016 at 08:26 UTC |