<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So that's why i wonder if it's possible to change in my script utf8 encoding<br>
toward latin1 encoding?<br>
<br></blockquote><div><br></div><div>I'm not an expert in the field but I suppose you can do it as far as you have used characters that can be encoded in latin1.</div><div>If you have unicode strings you can convert them with:</div>
<div><br></div>.encode('latin-1') </div><div class="gmail_quote"><br></div><div class="gmail_quote">i.e.:</div><br>>>> a = u"\u00E1"<br>>>> type(a)<br><type 'unicode'><br>
>>> a.encode('utf-8')<br>'\xc3\xa1'<br>>>> a.encode('latin-1')<br>'\xe1'<div><br></div><div>giovanni</div>