note
AlexTape
ok, thats like my first approach:
<code>
use utf8;
use open ':std', ':encoding(UTF-8)';
use open IO => ':encoding(UTF-8)';
</code>
but ok.. internal error like this:<br>
utf8 "\xA9" does not map to Unicode at /usr/local/share/perl/5.14.2/XML/Tidy.pm line 780.<br>
utf8 "\xAE" does not map to Unicode at /usr/local/share/perl/5.14.2/XML/Tidy.pm line 782.<br>
<br>
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 <code>utf8::decode($_) or die "Input is not valid UTF-8"; </code>just to say there are more then one charsets in the file or not??? or is it part of the problem?!<br><br>kindly perlig<br>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-893562">
$perlig =~ s/pec/cep/g if 'errors expected';
</div></div>
1039536
1039571