445 Posts

October 18th, 2012 11:00

Kegler4ever,

I think there could be two reasons for this: -

1. You have to install the UTF-8 support on your Linux server, the package may not be installed therefore you need to install it.

2. Your locale may need amending? See what the output to "locale" and "locale -a" commands are from your user prompt?

You may have to change the LANG setting to en_US.UTF-8

"locale" example from Linux:

user_a@some_linux_box :~> locale

LANG=en_US

LC_CTYPE="en_US"

LC_NUMERIC="en_US"

LC_TIME="en_US"

LC_COLLATE=POSIX

LC_MONETARY="en_US"

LC_MESSAGES="en_US"

LC_PAPER="en_US"

LC_NAME="en_US"

LC_ADDRESS="en_US"

LC_TELEPHONE="en_US"

LC_MEASUREMENT="en_US"

LC_IDENTIFICATION="en_US"

LC_ALL=

"locale -a" example from Linux:

user_a@some_linux_box :~> locale -a

C

POSIX

af_ZA

ar_AE

ar_BH

ar_DZ

ar_EG

ar_EG.utf8

ar_IN

. . .

uz_UZ

vi_VN.utf8

yi_US

zh_CN

zh_CN.gb18030

zh_CN.gbk

zh_CN.utf8

zh_HK

zh_TW

zh_TW.euctw

zh_TW.utf8

Setting the LANG variable in a .profile file for the BASH shell under Linux:

.../...

export LANG=en_US.UTF-8

When you log back in using the new LANG setting, you should now see that many of the other "LC_" locale environment variables have been updated automatically:

After setting LANG to a UTF-8 locale in Linux:

user_a@some_linux_box :~> locale

LANG=en_US.UTF-8

LC_CTYPE="en_US.UTF-8"

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE=POSIX

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL

Regards,

Bill Mason

October 18th, 2012 12:00

Thanks for the reply Bill.  I don't know what package I need or command I need to run to have UTF-8 support on this off the wall version of SuSE Linux.  Here is some more output.

mx-corlog:/usr/share/locale # locale

LANG=POSIX

LC_CTYPE=en_US

LC_NUMERIC="POSIX"

LC_TIME="POSIX"

LC_COLLATE="POSIX"

LC_MONETARY="POSIX"

LC_MESSAGES="POSIX"

LC_PAPER="POSIX"

LC_NAME="POSIX"

LC_ADDRESS="POSIX"

LC_TELEPHONE="POSIX"

LC_MEASUREMENT="POSIX"

LC_IDENTIFICATION="POSIX"

LC_ALL=

mx-corlog:/usr/share/locale # locale -a

C

POSIX

544 Posts

October 18th, 2012 19:00

Hi Kegler4ever,

Check that you have the rpm package "glibc-locale" installed.

# rpm -qa | grep -i glibc

If it is installed, To set an UTF-8 locale environment, Instead of setting all LC_ variables separately, you can set the LC_ALL by running the following:

export LC_ALL=en_US.utf8 ; export LANG=en_US.utf8

To make these changes active in the current shell, source the .bashrc:

$ source ~/.bashrc

but make sure that you have the glibc-locale package installed correctly at the begining.

Hope this helps you.

Thanks,

Ahmed Bahaa

No Events found!

Top