in reply to Re^4: Another utf-8 decoding problem
in thread Another utf-8 decoding problem
Ok. So I should encode the data from utf-8 and decode it to iso?
No. Don't go mixing all the terms I've used.
You should decode incoming data (from UTF-8 or whatever encoding it is) into perl's internal format.
Then do your string operations with decoded strings.
Then when you ouput it, encode it. It's not the right format already - it's in Perl's internal format, which can be either latin1 or UTF-8, depending on some factors you shouldn't care about.
Please read this, it explains it all in sufficient detail (I hope).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Another utf-8 decoding problem
by DreamT (Pilgrim) on Oct 11, 2010 at 13:06 UTC | |
by moritz (Cardinal) on Oct 11, 2010 at 13:17 UTC | |
by DreamT (Pilgrim) on Oct 11, 2010 at 14:10 UTC | |
by DreamT (Pilgrim) on Oct 11, 2010 at 14:19 UTC | |
by moritz (Cardinal) on Oct 11, 2010 at 14:53 UTC | |
|