in reply to Re^4: convert files to ansi (8859-1)
in thread convert files to ansi (8859-1)
-- if we get an error, then i simply say it's utf8 and I don't do anything
That's wrong.
If your input is bytes that are a valid UTF-8 sequence, you still need to call decode on it to have usable strings in Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: convert files to ansi (8859-1)
by Yaerox (Scribe) on Mar 29, 2017 at 08:39 UTC | |
by Corion (Patriarch) on Mar 29, 2017 at 08:40 UTC | |
by Yaerox (Scribe) on Mar 29, 2017 at 08:42 UTC | |
by Corion (Patriarch) on Mar 29, 2017 at 08:46 UTC | |
by Yaerox (Scribe) on Mar 29, 2017 at 09:37 UTC |