<?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 Invalid character in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/invalid-character/m-p/163433#M117235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In an repositoryService.update() call I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org.xml.sax.SAXParseException: An invalid XML character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Unicode: 0x1c) was found in the element content of the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that this character is indeed illegal in XML but the question is how to get around this. I can't simply replace the character on the client side because I have to store the content in the original format (an email). So in order to process this correctly I need to encode it in the client and decode it to the original format on the server side if I'm not mistaken. Any hints on how to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carsten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 07:26:09 GMT</pubDate>
    <dc:creator>cburghardt</dc:creator>
    <dc:date>2008-07-18T07:26:09Z</dc:date>
    <item>
      <title>Invalid character</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-character/m-p/163433#M117235</link>
      <description>In an repositoryService.update() call I get the following error:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org.xml.sax.SAXParseException: An invalid XML character(Unicode: 0x1c) was found in the element content of the document.I know that this character is indeed illegal in XML but the question is how to get around this. I can't simp</description>
      <pubDate>Fri, 18 Jul 2008 07:26:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-character/m-p/163433#M117235</guid>
      <dc:creator>cburghardt</dc:creator>
      <dc:date>2008-07-18T07:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid character</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-character/m-p/163434#M117236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have some more information regarding this. The error occurs in RepositoryService.create(CMLCreate) and seems to be a problem with unicode characters. When I create content and set the name or any of the NamedValue properties to a string encoded with KOI8-R I get this exception. I consider this a bug in the Webservice as there is definitely no 0x1e (control character RS) in the data that I set. This is Alfresco 2.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 08:07:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-character/m-p/163434#M117236</guid>
      <dc:creator>cburghardt</dc:creator>
      <dc:date>2008-07-21T08:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid character</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-character/m-p/163435#M117237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Replying again to myself just in case somebody else stumbles over this. I've modified the Webservice client to pass the correct encoding (not UTF-8 but e.g. KOI8-R) to the Call object of Axis (CHARACTER_SET_ENCODING). That way I can transfer the correctly encoded characters to the server (I checked this with tcpmon). But then I get error messages about other illegal characters like 0x1 once the content is parsed on the server side&amp;nbsp; :evil: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have a working example to store somewhat "exotic" characters (chinese, kyrilic, whatever) as property in Alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 14:20:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-character/m-p/163435#M117237</guid>
      <dc:creator>cburghardt</dc:creator>
      <dc:date>2008-08-04T14:20:48Z</dc:date>
    </item>
  </channel>
</rss>

