cancel
Showing results for 
Search instead for 
Did you mean: 

User data from LDAP: Character encoding problem

asexto
Champ in-the-making
Champ in-the-making
First post, so first of all I want to say thanks for this great product.

This actually is happening in my test installation against Active Directory, anyway I suffered the same problem a few days ago using OpenLDAP: User and group data imported from AD (Win2k3 Server, Spanish version) is represented with wrong format in Alfresco's web client.

Problems are all with non-english characters (á, é, ñ…)

I'm not sure where the problem is, but I guess is has something to do with LDAP import tasks: I can create spaces with names containing tildes, so I guess tomcat, linux (gentoo), postgres and alfresco are all working fine.

I googled and searched the forum before posting, hope I'm not repeating a topic.

BTW: I'm using Alfresco 2.1.0 war file. Any clue about what should I do?

Just ask if you need any code.

Thanks
14 REPLIES 14

naveenkumar
Champ in-the-making
Champ in-the-making
hi,

We have users imported into alfresco system through LDAP. Users have spl characters (French) in their names.

When we search for names with specila charaters No results are returned (In Invite users screen, admin console search users screen)

We see that the screens use lucene search. We tried setting the serever encoding to UTF-8 (catalina.bat file), yet the results do not display names with spl characters….

set Catalina_opts= -Dfile -encoding=UTF-8

[size=100]Any solution anybody?[/size]

bjoern
Champ in-the-making
Champ in-the-making
Hello,

isn't it supposed to be something like this under windows: "set CATALINA_OPTS=-Dfile.encoding=…" …
–> that is a dot between 'file' and 'encoding' ?

try setting the java-opts in the "alfresco.bat" instead.


I set the javaopts in the "alfresco.sh" under "/opt/alfresco" like this on Ubuntu:

export JAVA_OPTS='-Xms128m -Xmx512m -server -Dfile.encoding=UTF-8'

and it worked fine…

Cheers Björn

naveenkumar
Champ in-the-making
Champ in-the-making
Hello,

Thanks for responding. That - was a typo error.

Well i set in alfresco.sh

# Value by SDE
export JAVA_OPTS='-Xms256m -Xmx512m -XXSmiley TongueermSize=192m -server -Dfile.encoding=UTF-8'

seems like i have a strange problem,
when i search for a paticular name (last name) alone with spl character with french as language, i get results,
whereas when i search after setting the language as english, i get no results

I did tests with two names (last name) having spl characters –>one returns results with both eng and french language (set in user options screen), the other doesnt return results only when language if English.

Any idea?

naveenkumar
Champ in-the-making
Champ in-the-making
Hi,

I still face the problem…when my language is set to english the search doesnot return results….for names with spl characters…
Any sugesstion?

jbloemendal
Champ in-the-making
Champ in-the-making
Hallo,

warming up this thread again…

We're facing the same problem. After changing the encoding by setting -Dfile.encoding=UTF-8, usernames containing special characters are rendered correctly, however searching those names isn't possible. The wired thing we encounter and which let's hope it might just be related to configuration is: the problem only occurs on the production environment.

Cheers,
Jannis