Hmmph - took the plunge and persuaded my boss to get a dedicated linux box to host our java web apps but any form data is arriving at the servlet container messed up - the pound signs (£) are coming up as ? marks. I believe this has something to do with charsets but nothing ive tried has worked. Bearing in mind im a bit of a linux newbie is there anything i can do to see if my Linux installation has the correct charsets installed etc?
Thanks for the reply, but this app is part of a content management system so I was hoping they wouldnt have to convert their pound signs into codes. The app works in Windows fine. Reading the discussion forums, I noted that Linux 9 come set for en_US.utf-8 and I believe herein lies the problem. Still working on it
basically Linux Redhat 9 comes configured for utf-8. Which is all well and good, but somewhere down the line from browser - apache web server 2.0 - jk2 - tomcat 5 - mysql and back again one of them must have been using iso - 8859 -1 or whatever it is. Fiddled round for a bit trying to make them all utf-8 with no success so i just changed linux back to the iso thing (dont plan on hosting japanese sites anyway -
the file that needs changing is /etc/sysconfig/i18n
Maybe the problem is the the encoding used for your symbol is not utf-8, which is why it is mapping to an unknown codepoint in the first place.
::. www.diginode.net : Dedicated Servers : Virtual Machine Servers .::
::. Industry-Leading Remote Server Management .::
::. Automatic OS Re-image : Instant Server Reboot : Remote Serial Console .::
::. Over 20 OSes to choose from : Install a new OS every day .::
I had similar problem and it was caused by the default charset settings in apache and tomcat.
To confirm it's caused by wrong charset headers, you should first check your HTTP headers:
1) in linux shell, run "telnet www.yourmachine.com 80"
2) type "HEAD / HTTP/1.0" and press [Enter] twice
Now you will see the charset header if one is specified.
If the charset is incorrect, you should change it in your httpd.conf or tomcat configuration file (search for "charset"). Apache & tomcat may be preconfigured with a charset that is incompatible with your application. If you do not know the correct charset to you, you can try commenting out the charset settings in apache & tomcat.