Hi Dieter,<br><br>&nbsp; That makes a lot of sense, thanks. Once I encode the strings in utf-8 there are no issues.<br><br>&nbsp; That&#39;s a great tip about setting the content_type charset correctly. The way I was handling this so far was to specify it in the header of the page that was displaying the text:<br>
&nbsp;&nbsp;&nbsp; &lt;span tal:content=&quot;nocall:python:request.response.setHeader(&#39;Content-Type&#39;,&#39;text/html; charset=UTF-8&#39;)&quot; tal:omit-tag=&quot;&quot;&gt;&lt;/span&gt;<br><br>&nbsp; But setting the content type is a lot cleaner, so I&#39;ll be doing that from now on.<br>
<br>&nbsp; Thanks!<br><br>Thibaud<br><br>Also, in case anyone googles this... by default Zope renders content with a <br><br><div class="gmail_quote">On Mon, Dec 15, 2008 at 2:56 PM, Dieter Maurer <span dir="ltr">&lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Andreas Jung wrote at 2008-12-14 16:00 +0100:<br>
<div><div></div><div class="Wj3C7c">&gt;On 14.12.2008 15:44 Uhr, Thibaud Morel l&#39;Horset wrote:<br>
&gt;&gt; Hey AJ,<br>
&gt;&gt;<br>
&gt;&gt; Thanks. Full traceback below. Regarding storing files, I meant the File<br>
&gt;&gt; Zope Object, as added by the following API call:<br>
&gt;&gt; newFolder.manage_addFile(id,title=title, content_type=&quot;text/plain&quot;,<br>
&gt;&gt; file=content).<br>
&gt;&gt;<br>
&gt;<br>
&gt;&#39;file&#39; must be an open file object and not a string with the binary content.<br>
<br>
</div></div>Almost: &quot;file&quot; is either a file like object or an &quot;str&quot; but not &quot;unicode&quot;.<br>
<br>
@Thibaud: encode your unicode to a byte sequence (&quot;str&quot;)<br>
using an adequate encoding (e.g. &#39;utf-8&#39;).<br>
<br>
You should then also indicate the chosen charset in &quot;content_type&quot;,<br>
e.g. &quot;content_type=&#39;text/plain; charset=utf-8&#39;&quot;.<br>
<br>
<br>
<br>
--<br>
<font color="#888888">Dieter<br>
</font></blockquote></div><br>