in reply to Re: Perl detect utf8, iso-8859-1 encoding
in thread Perl detect utf8, iso-8859-1 encoding
simply checking if the input is valid UTF-8 and assuming ISO-Latin-1 if not
Thanks! This is a good idea, but how could I find out if the input is a valid utf-8 or not? Both utf8::valid and utf8::is_utf8 are not working well in my examples
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl detect utf8, iso-8859-1 encoding
by haj (Vicar) on Jul 25, 2020 at 08:50 UTC |