utf 8 - Alfresco 4.0 Community - document preview for cyrillic utf8(?) txt, html shows malformed text -


alfresco 4.0 community previewer displays utf8(?) txt , html documents cyrillic malformed. how enable utf8 previewer or @ least force show russian , english text?

txt previewing - has strange behaviour , maybe here not 1 problem, creating or editing text document:

  • тестовый текст - test text
  • 日本人テストテキスト - japanese test text
  • español - spanish

enter image description here

previewer shows malformed:

http://i.imgur.com/nxr9g2f.jpg

when downloading document displaying in notepad++, says, has ansi utf-8 encoding (utf-8 without bom)

when inline editing document again - fields shows normal @ inline editing form, previewer still shows mallformed text.

html previewing, pay attention, preview encoding looks different in preview text creating/inline editing case: _http://i.imgur.com/bptvc3z.jpg

post chrome developers tools html previewing:

request url:...:8080/share/proxy/alfresco/api/type/cm%3acontent/formprocessor request method:post status code:200 ok request headersview source accept:*/* accept-charset:iso-8859-1,utf-8;q=0.7,*;q=0.3 accept-encoding:gzip,deflate,sdch accept-language:ru,en-us;q=0.8,en;q=0.6 connection:keep-alive content-length:388 content-type:application/json .... user-agent:mozilla/5.0 (windows nt 6.1) applewebkit/537.31 (khtml, gecko) chrome/26.0.1410.64 safari/537.31 x-requested-with:application/x-www-form-urlencoded ... prop_app_editinline: "true" prop_cm_content: "<p>теÑтовый текÑÑ‚ - test text</p>↵<p>日本人テストテキスト - japanese test text</p>↵<p>espa&ntilde;ol - spanish</p>" prop_cm_description: "html test" prop_cm_name: "html test" prop_cm_title: "html test" prop_mimetype: "text/html" response headersview source cache-control:no-cache content-length:166 content-type:application/json;charset=utf-8 date:mon, 13 may 2013 23:10:36 gmt pragma:no-cache server:apache-coyote/1.1 

for part "теÑтовый текÑÑ" decoder says, when converting cp1252 → utf-8 "те�товый тек��" - pretty close "тестовый текст".

alfresco 4.0.e on ubuntu linux server 13.04 alfresco-community-4.0.e-installer-linux-x64.bin

in rare cases when creating simple text (or maybe moon phases influence ;-) ), example if written 1 russian word "текст" - previewer displays @ first time, , when creating first document in repository, on reload previewer or edit, creating next document same text "текст" - malformed again.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -