in reply to Re^2: function length() in UTF-8 context
in thread function length() in UTF-8 context
so, it seems that we have to "come back" to iso8859-1 previously to use safely "string functions"
I don't know what you mean by this.
You decode on input, and encode on output. Leave it decoded for the duration of your program. Unless you're working with binary file formats, you shouldn't have to call encode or decode. Just using an appropriate :encoding when opening files should take care of text files.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: function length() in UTF-8 context
by didess (Sexton) on Nov 19, 2008 at 10:47 UTC | |
by ikegami (Patriarch) on Nov 19, 2008 at 10:57 UTC | |
by ikegami (Patriarch) on Nov 19, 2008 at 11:10 UTC |