<?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 comment with  utf-8 character encoding  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/comment-with-utf-8-character-encoding/m-p/210278#M163408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i add a comment with utf-8 character encoding, every thing is fine but when i read that comment , the fullMessage property of comment has bad characters( e.g ???????????????????)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 07:37:15 GMT</pubDate>
    <dc:creator>saeidrastak</dc:creator>
    <dc:date>2014-12-17T07:37:15Z</dc:date>
    <item>
      <title>comment with  utf-8 character encoding</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/comment-with-utf-8-character-encoding/m-p/210278#M163408</link>
      <description>Hi all,when i add a comment with utf-8 character encoding, every thing is fine but when i read that comment , the fullMessage property of comment has bad characters( e.g ???????????????????)best regards.</description>
      <pubDate>Wed, 17 Dec 2014 07:37:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/comment-with-utf-8-character-encoding/m-p/210278#M163408</guid>
      <dc:creator>saeidrastak</dc:creator>
      <dc:date>2014-12-17T07:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: comment with  utf-8 character encoding</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/comment-with-utf-8-character-encoding/m-p/210279#M163409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anyonw is interested i had the same problem with taskcomments. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti 5.16.3 with postgres.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The soluction i found was to modify CommentEntity.java in activiti-engine to handle UFT-8 encoding while saving and reading the comment from the blob column.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extract from org/activiti/engine/impl/persistence/entity/CommentEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public byte[] getFullMessageBytes() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return (fullMessage!=null ? fullMessage.getBytes("UTF-8") : null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; } catch (UnsupportedEncodingException e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return (fullMessage!=null ? fullMessage.getBytes() : null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public void setFullMessageBytes(byte[] fullMessageBytes) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; fullMessage = (fullMessageBytes!=null ? new String(fullMessageBytes, "UTF-8") : null );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; } catch (UnsupportedEncodingException e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; fullMessage = (fullMessageBytes!=null ? new String(fullMessageBytes) : null ); }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this modification I was able to save and read special characters (ñ,é,ò. etc..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe its a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 10:37:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/comment-with-utf-8-character-encoding/m-p/210279#M163409</guid>
      <dc:creator>ismaelgarcia</dc:creator>
      <dc:date>2015-06-29T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: comment with  utf-8 character encoding</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/comment-with-utf-8-character-encoding/m-p/210280#M163410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I indeed think that's a bug. Would you be willing to create a pull request for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 20:15:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/comment-with-utf-8-character-encoding/m-p/210280#M163410</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-30T20:15:11Z</dc:date>
    </item>
  </channel>
</rss>

