<p>Tenta dar um use utf8 ( com o codigo utf8) e no open passar um &quot;:encode(iso-8858-1o&quot;</p>
<p>No open, utf8 = quirks mode, utf-8 eh strict.</p>
<p><blockquote type="cite">Em set 21, 2010 12:00 AM, &quot;breno&quot; &lt;<a href="mailto:breno@rio.pm.org">breno@rio.pm.org</a>&gt;escreveu:<br><br><p><font color="#500050">2010/9/20 Marcio Ferreira &lt;<a href="mailto:marciodesouzaferreira@gmail.com">marciodesouzaferreira@gmail.com</a>&gt;:
</font></p><p><font color="#500050">&gt; só amanhã do trabalho, mas basicamente eu uso o XML::Bare para carregar o
&gt; XML, faço um trim nos ...</font></p>O comando &quot;perldoc perldiag&quot; disse o seguinte sobre a causa do seu problema:<br>
<br>
-----------------8&lt;-----------------<br>
Malformed UTF-8 character (%s)<br>
           (S utf8) (F) Perl detected a string that didn’t comply with UTF-8<br>
           encoding rules, even though it had the UTF8 flag on.<br>
<br>
           One possible cause is that you set the UTF8 flag yourself for data<br>
           that you thought to be in UTF-8 but it wasn’t (it was for example<br>
           legacy 8-bit data). To guard against this, you can use<br>
           Encode::decode_utf8.<br>
<br>
           If you use the &quot;:encoding(UTF-8)&quot; PerlIO layer for input, invalid<br>
           byte sequences are handled gracefully, but if you use &quot;:utf8&quot;, the<br>
           flag is set without validating the data, possibly resulting in this<br>
           error message.<br>
<br>
           See also &quot;Handling Malformed Data&quot; in Encode.<br>
-----------------&gt;8-----------------<br>
<br>
Mais que isso, acho que só olhando o seu código :-)<br>
<br>
[]s<br>
<font color="#888888"><br>
-b<br>
</font><p><font color="#500050">_______________________________________________
SaoPaulo-pm mailing list
<a href="mailto:SaoPaulo-pm@pm.org">SaoPaulo-pm@pm.org</a>
<a href="http://m.">http://m.</a>..</font></p></blockquote></p>