German Umlaut in foldername

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Katagia
Posts: 16
Joined: Wed Dec 20, 2006 5:59 am

German Umlaut in foldername

Postby Katagia » Fri Sep 21, 2007 4:16 am

Hi

I want use public folders to receive email. I read the docu and
it is working.

Unfortunatly I have problems with umlauts.
linux:~ # omlistbbs
[...]
4 Postfächer (no owner)

In console it is displayed correct. Outlook and Webmail shows the UTF8 encoded
umlaut as 2 ascii chars "Postfächer". I can change the foldername in webmail but
this breaks all commandline tools:
linux:~ # omlistbbs
[...]
4 Postf####cher (no owner)

The next problem is the eMail adress of the folder won't work anymore and I'm unable
the set it correct.

How should I proceed?

Cheers,

gren
Scalix
Scalix
Posts: 264
Joined: Thu Mar 25, 2004 10:27 am
Contact:

Postby gren » Mon Sep 24, 2007 8:44 am

I think one cause of confusion might be that your terminal emulator sofware thinks you are using one particular character set but the locale of your linux environment thinks you are using a different character set.

In particular, if I setup my terminal emulator to believe that it is running in UTF-8 but run the command:

Code: Select all

LANG=en_US.iso88591 omaddbb -s Postfächer

What I'm doing is telling the omaddbb command to expect iso88591 strings but actually providing a UTF-8 string, which HAPPENS to be a valid (if rather odd) iso88591 string.

If I do :

Code: Select all

LANG=en_US.iso88591 omlistbbs


I see :

Code: Select all

 1 Postfächer                                   (no owner)


Looks fine, but it IS NOT. What has happened is that the original string was converted from iso88591 to UTF-8 for Scalix internal storage. With this omlistbbs command, Scalix notices that the locale is using iso88591 and reverses the character set conversion. As quite often happens, this results in the same string.

However, if I do :

Code: Select all

LANG=en_US.utf8 omlistbbs


I see :

Code: Select all

 1 Postfächer                                   (no owner)


which is the actual UTF-8 string which has been stored.

You can change the Linux locale using e.g.

Code: Select all

LANG=en_US.utf8
export LANG


Hope this helps.

regards,
Gren.


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron