|laziness, impatience, and hubris|
Re^2: Composite Charset Data to UTF8?by AlexTape (Monk)
|on Jun 19, 2013 at 11:56 UTC||Need Help??|
ok, thats like my first approach:
but ok.. internal error like this:
utf8 "\xA9" does not map to Unicode at /usr/local/share/perl/5.14.2/XML/Tidy.pm line 780.
utf8 "\xAE" does not map to Unicode at /usr/local/share/perl/5.14.2/XML/Tidy.pm line 782.
anyway that is not the really part of the problem.. anybody got a quick solution to test a file for a constant charset? e.g. true/false for file eq utf8 or not?! can i say that the file is utf after utf8::decode($_) or die "Input is not valid UTF-8"; just to say there are more then one charsets in the file or not??? or is it part of the problem?!
$perlig =~ s/pec/cep/g if 'errors expected';