cancel
Showing results for 
Search instead for 
Did you mean: 

Showing hebrew files in alfresco

shlomi
Champ in-the-making
Champ in-the-making
Hello,
Iam very new to Alfresco and web programming altogether, so I might be missing out on something quite basic.
I have files that are named in Hebrew (this is a must for our system). Instead of seeing the title of the file, I see question marks. These question mark also appear when browsing the directory within a mounted CIFS folder.

How can I configure Alfresco to allow for Hebrew characters?

Thank you very much
Shlomi
9 REPLIES 9

kevinr
Star Contributor
Star Contributor
You should use something other than the default HyperSQL database - the README has info on MySQL usage. You should make sure you create your MySQL db instance as "utf-8" encoding. Alfresco supports most languages including multi-byte, UTF-8 encoding and so in. In Alfresco 2.1 we have added support for automatically selecting the correct file encoding for new content added to the repo, such as UTF-16 or similar encoded files.

Hope this helps,

Kevin

shlomi
Champ in-the-making
Champ in-the-making
Hi Kevin,

Thank you, it helped indeed. I reinstalled both mysql (set it to use utf8) and alfresco.

Now I do see hebrew filenames and spaces, and I also see the CIFS files and folders in hebrew.

I ran into a new problem:
I have a space named "שלום". (shalom, hello Smiley Happy )
I have a javascript that searchs for this hebrew space.

var regionFolder = companyhome.childByNamePath("שלום");

will always return me null.

I tried to write this script from the inline editor (thinking it would be encoded the same way it would be later executed, and compared), but when I open it from TextPad (through the CIFS share), it says that the file has Latin1 encoding to it, and doesnt display my שלום correctly. Does this mean that Tomcat is running using latin1? how do I change it to utf8? is there anything else I could try?

Thank you,
Shlomi

kevinr
Star Contributor
Star Contributor
That may be a bug in our execution of javascript files - or it may be an issue in Rhino (the JavaScript engine we use). Can you raise a JIRA bug for this and we'll take a look for the 2.1 final release.

Thanks,

Kevin

shlomi
Champ in-the-making
Champ in-the-making
Ok,
I opened a bug in jira ( http://issues.alfresco.com/browse/AR-1571 ), thank you very much for your help.

Thanks,
Shlomi

shlomi
Champ in-the-making
Champ in-the-making
Hi,
I see that jira itself doesnt display hebrew properly.
The message there is similar to the one here, so to clarify, the question marks there is the word "שלום"

Thanks,
Shlomi

kevinr
Star Contributor
Star Contributor
I see that jira itself doesnt display hebrew properly.

Smiley Happy Good to know we aren't the only system with the problem!

We'll look at the issue for 2.1 community final.

Thanks for spotting it.

Kevin

shlomi
Champ in-the-making
Champ in-the-making
Hello,

I downloaded and installed Alfresco 2.1 RC1 (R1 443), and this error seems to be solved!

Thank you very much!

Shlomi

shlomi
Champ in-the-making
Champ in-the-making
Hello,

This Error is back!

I installed Alfresco 2.1 with mysql, and everything worked perfectly, and then I have migrated to Oracle, and it stopped working (I dont know what does it have to do with the error..).

If I create a new space named "שלו×

shlomi
Champ in-the-making
Champ in-the-making
False Alarm…

Well, interestingly, I didnt save my js file using the utf-8 option in notepad, rather in ansi..
once I saved it as utf-8, it worked again..  :roll:  :roll:

Well,
have a great evening,
Shlomi