<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: UTF-8 via SOAP in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/utf-8-via-soap/m-p/211533#M164663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, this was neither an axis problem nor an alfresco one. Tomcat for some reason uses latin-1 as default encoding for responses and writing to file (two separate problems actually, which appeared to be connected). I fixed it by setting the Java option -Dfile.encoding=utf-8 and putting this in the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (req.getCharacterEncoding() == null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; req.setCharacterEncoding("UTF-8");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;res.setContentType("text/html; charset=UTF-8");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;res.setCharacterEncoding("UTF-8");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 12:51:38 GMT</pubDate>
    <dc:creator>tim-erwin</dc:creator>
    <dc:date>2010-09-01T12:51:38Z</dc:date>
    <item>
      <title>UTF-8 via SOAP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/utf-8-via-soap/m-p/211532#M164662</link>
      <description>Hi,I'm using the alfresco web services and have the problem that I don't get UTF-8 encoded text. For instance when I create a file with the name "Łódź.txt" in the alfresco webclient it is displayed correctly (database and connection are properly configured) but the Java webservice client returns "?ó</description>
      <pubDate>Thu, 19 Aug 2010 11:36:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/utf-8-via-soap/m-p/211532#M164662</guid>
      <dc:creator>tim-erwin</dc:creator>
      <dc:date>2010-08-19T11:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: UTF-8 via SOAP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/utf-8-via-soap/m-p/211533#M164663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, this was neither an axis problem nor an alfresco one. Tomcat for some reason uses latin-1 as default encoding for responses and writing to file (two separate problems actually, which appeared to be connected). I fixed it by setting the Java option -Dfile.encoding=utf-8 and putting this in the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (req.getCharacterEncoding() == null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; req.setCharacterEncoding("UTF-8");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;res.setContentType("text/html; charset=UTF-8");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;res.setCharacterEncoding("UTF-8");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 12:51:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/utf-8-via-soap/m-p/211533#M164663</guid>
      <dc:creator>tim-erwin</dc:creator>
      <dc:date>2010-09-01T12:51:38Z</dc:date>
    </item>
  </channel>
</rss>

