cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with charset encoding

qasimh
Champ in-the-making
Champ in-the-making
Hi,

Using Alfresco 2.0 CE, Windows Server 2003, Tomcat, …

I have added HTML content with the following encoding:
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">

When browsing this content, it always seem to open with "utf-8" encoding.  This causes some glitches in our pages.

Why is it opening with UTF-8? 
Looking at the Noderef, it appears that this is hadcoded somewhere:
"contentUrl=store://2007/5/22/8/7/613e8b3f-0865-11dc-8814-798d9ee261a8.bin|mimetype=text/html|size=5385|encoding=UTF-8|locale=en_US_"

This is an annoyance to the users who author, manage, and view these pages.

I'm not sure what I can do to resolve this.  Does anyone have some advice?

I considered saving all html files in UTF-8, but that is not easy to do with several non-technical authors who are used to creating HTML files from MS Office.

I considered modifying the browser settings, but apparently, it is behaving correctly (i.e. it consistently opens ALL html content with UTF-8 encoding).

Any suggestions?
-Q
7 REPLIES 7

kevinr
Star Contributor
Star Contributor
This is currently an area that needs improving, i believe the only way to change the UTF-8 default encoding set as present is through the various APIs. I have raised an improvements for this to be added to the web-client UI:
http://issues.alfresco.com/browse/AWC-1283

Thanks,

Kevin

kevinr
Star Contributor
Star Contributor
This has been fixed in 2.1R1. Files are now set to the correct file encoding when uploaded. It is also possible to change the encoding (to say UTF-8 or UTF-16) in the web-client if it is incorrect for an existing file.

Thanks,

Kevin

lakshya
Champ in-the-making
Champ in-the-making
Hello,
Can you please tell how can we change the charset from UTF-8 to UTF-16????

I want to know how Alfresco support multilingual..

kevinr
Star Contributor
Star Contributor
Go into the Details page for the Document. Click the little Edit Properties icon and you can then select a different Encoding from the drop-down.

Sign up for the Alfresco manuals for more info on multi-lingual doc support.
Here's some dev info:
http://wiki.alfresco.com/wiki/Multilingual_Document_Support

Kev

lakshya
Champ in-the-making
Champ in-the-making
Thanks  Kevin..
But when I am setting the Encoding : UTF-16 and Language: French
it displays some chinese charaters.

I am writing 'Hello' in the file and getting '攀氀氀漀" when i set encoding and language.
Can you put some lights on this???

kevinr
Star Contributor
Star Contributor
What application are you using to edit the file? The Alfresco client does not support "online" file editing in anything other than UTF-8 (i.e. for text/html files edited within your browser). So you will need to open it and edit it in the appropriate application such as MS Word.

Kevin

lakshya
Champ in-the-making
Champ in-the-making
I have followed simple steps

- create a content
- put some text in it ,say "Hello"
- set encoding : UTF-16
- set Language : French

When I create .txt file is displays "Hello" in some chinese character
When I create .doc file is displays "Hello" in English itself.

Am I missing something???