<?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 4.0 Community - document preview for cyrillic utf8(?) txt, html shows malformed text in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/4-0-community-document-preview-for-cyrillic-utf8-txt-html-shows/m-p/308026#M261156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco 4.0 Community previewer displays utf8(?) txt and html documents with cyrillic malformed. How to enable utf8 for previewer or at least force it show normally russian and english text?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Txt previewing - it has most strange behaviour and maybe here not only one problem, creating or editing this text document:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;тестовый текст - test text&lt;BR /&gt;日本人テストテキスト - japanese test text&lt;BR /&gt;español - spanish&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/rwsLzdN.jpg" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/rwsLzdN.jpg&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previewer shows it malformed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/Nxr9G2f.jpg" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/Nxr9G2f.jpg&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When downloading document it normally displaying in Notepad++, it says, that it has ANSI as UTF-8 encoding (UTF-8 without BOM)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When inline editing document again - all fields shows normal at inline editing form, but previewer still shows mallformed text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Html previewing, pay attention, that preview encoding looks different than in txt preview on creating/inline editing case: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/BPtvC3Z.jpg" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/BPtvC3Z.jpg&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST from chrome developers tools for HTML previewing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Request URL:…:8080/share/proxy/alfresco/api/type/cm%3acontent/formprocessor&lt;BR /&gt;Request Method:POST&lt;BR /&gt;Status Code:200 OK&lt;BR /&gt;Request Headersview source&lt;BR /&gt;Accept:*/*&lt;BR /&gt;Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3&lt;BR /&gt;Accept-Encoding:gzip,deflate,sdch&lt;BR /&gt;Accept-Language:ru,en-US;q=0.8,en;q=0.6&lt;BR /&gt;Connection:keep-alive&lt;BR /&gt;Content-Length:388&lt;BR /&gt;Content-Type:application/json&lt;BR /&gt;….&lt;BR /&gt;User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31&lt;BR /&gt;X-Requested-With:application/x-www-form-urlencoded&lt;BR /&gt;…&lt;BR /&gt;prop_app_editInline: "true"&lt;BR /&gt;prop_cm_content: "&amp;lt;p&amp;gt;Ñ‚ÐµÑÑ‚Ð¾Ð²Ñ‹Ð¹ Ñ‚ÐµÐºÑÑ‚ - test text&amp;lt;/p&amp;gt;↵&amp;lt;p&amp;gt;æ—¥æœ¬äººãƒ†ã‚¹ãƒˆãƒ†ã‚‚¹ãƒˆ - japanese test text&amp;lt;/p&amp;gt;↵&amp;lt;p&amp;gt;espa&amp;amp;ntilde;ol - spanish&amp;lt;/p&amp;gt;"&lt;BR /&gt;prop_cm_description: "html test"&lt;BR /&gt;prop_cm_name: "html test"&lt;BR /&gt;prop_cm_title: "html test"&lt;BR /&gt;prop_mimetype: "text/html"&lt;BR /&gt;Response Headersview source&lt;BR /&gt;Cache-Control:no-cache&lt;BR /&gt;Content-Length:166&lt;BR /&gt;Content-Type:application/json;charset=UTF-8&lt;BR /&gt;Date:Mon, 13 May 2013 23:10:36 GMT&lt;BR /&gt;Pragma:no-cache&lt;BR /&gt;Server:Apache-Coyote/1.1&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;For part "Ñ‚ÐµÑÑ‚Ð¾Ð²Ñ‹Ð¹ Ñ‚ÐµÐºÑÑ" decoder says, that when he converting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CP1252 → UTF-8,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; he get "те�товый тек��" - pretty close to "тестовый текст".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco 4.0.e on ubuntu linux server 13.04 alfresco-community-4.0.e-installer-linux-x64.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In rare cases when creating very simple text (or maybe it just moon phases influence &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ), for example if it written only one russian word "текст" - previewer displays it normally at FIRST time, and only when creating first document in repository, but on reload previewer or edit, creating next document with same text "текст" - it malformed again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 00:20:15 GMT</pubDate>
    <dc:creator>i_</dc:creator>
    <dc:date>2013-05-14T00:20:15Z</dc:date>
    <item>
      <title>4.0 Community - document preview for cyrillic utf8(?) txt, html shows malformed text</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/4-0-community-document-preview-for-cyrillic-utf8-txt-html-shows/m-p/308026#M261156</link>
      <description>Alfresco 4.0 Community previewer displays utf8(?) txt and html documents with cyrillic malformed. How to enable utf8 for previewer or at least force it show normally russian and english text?Txt previewing - it has most strange behaviour and maybe here not only one problem, creating or editing this</description>
      <pubDate>Tue, 14 May 2013 00:20:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/4-0-community-document-preview-for-cyrillic-utf8-txt-html-shows/m-p/308026#M261156</guid>
      <dc:creator>i_</dc:creator>
      <dc:date>2013-05-14T00:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: 4.0 Community - document preview for cyrillic utf8(?) txt, html shows malformed text</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/4-0-community-document-preview-for-cyrillic-utf8-txt-html-shows/m-p/308027#M261157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try the Embed viewer from Share xtras &lt;/SPAN&gt;&lt;A href="http://share-extras.github.io/media-viewers/" rel="nofollow noopener noreferrer"&gt;http://share-extras.github.io/media-viewers/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;With that you can configure text files to be viewed directly in the browser (and browser code renders text file - international characters work). Problem here is transformation from text -&amp;gt; pdf -&amp;gt; flash, something breaks encoding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find some info on config here as well &lt;/SPAN&gt;&lt;A href="http://loftux.se/meetup/" rel="nofollow noopener noreferrer"&gt;http://loftux.se/meetup/&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 07:51:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/4-0-community-document-preview-for-cyrillic-utf8-txt-html-shows/m-p/308027#M261157</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2013-05-14T07:51:16Z</dc:date>
    </item>
  </channel>
</rss>

