Operating System - Linux
1823956 Members
3907 Online
109667 Solutions
New Discussion юеВ

Chinese characters, Linux and apache

 
Steven E. Protter
Exalted Contributor

Chinese characters, Linux and apache

I am responsible for some web infrastructure here at work.

http://china.nds.com/homepage.html

If you have chinese basic characters in your browser you should see chinese content. Don't ask me to read it Hebrew is bad enough for me.

Take a look at this:
http://china.nwserv1.nds.com/homepage.html

That second link, which may be slow due to a network issue is the new server I built which pretty much does everything else right except the chinese characters at the bottom of the page. Click those and you'll see an ugly mess.

I could use some assistance configuring these servers to show chinese charcters.

Steps taken to date:
[root@pub ~]# rpm -qa | grep iii
iiimf-gtk-12.1-13.EL.6
iiimf-csconv-12.1-13.EL.6
iiimf-le-xcin-0.1.7-12.EL4
iiimf-le-chinput-0.3-18.el4
iiimf-server-12.1-13.EL.6
iiimf-libs-12.1-13.EL.6

#
# chinese characters
#
text/vnd.wap.wml;charset=iso-8859-1 wml

Restarted the httpd server. Restarted the system.

Not a whole lot of luck.

I've been over the old system and found nothing that obviously put these chinese charcters into a usable status.

I'm betting ITRC can fix this.

Have at it ladies and gentlemen.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Chinese characters, Linux and apache

Found this package:

[root@pub ~]# rpm -qa | grep xcin
iiimf-le-xcin-0.1.7-12.EL4
xcin-2.5.3.pre3-25


The second I added.

No effect.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Chinese characters, Linux and apache

I had similar problems with another charset, and I had to modify the following value in httpd.conf:

AddDefaultCharset UTF-8
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: Chinese characters, Linux and apache

Shalom Ivan,

Already had that one. There are notes in the file from me (I think) concerning Russian, nothing concerning Chinese.


AddDefaultCharset UTF-8


AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8

Something is obviously missing. Going to check this list against the working server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Chinese characters, Linux and apache

Weird one.

Comment out all that stuff in my previous post, everything works fine. Looks like the developers used their own character sets encoded into the documents which httpd.conf messed up.

Counter-intuitive.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Chinese characters, Linux and apache

Strange,

Solution triggered by Ivan, should have given him more points. I'm usually more generous.

TY.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com