Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache latin character support |
|
Author |
|
gajjirajkumar
Joined: 25 Mar 2013 Posts: 2 Location: india,hyderabad
|
Posted: Mon 25 Mar '13 23:13 Post subject: Apache latin character support |
|
|
Hello,
There is a requirement by the customer In order to display latin characters correctly in the UI, we need to add charset information in httpd.conf file.
We have added the AddDefaultCharset UTF-8 in httpd.conf.
Even after adding the above charset in httpd.conf the changes was not reflecting.
And there was a reply by the customer that
Even after adding those lines to httpd.conf file, I am not getting characters (like ö, ä, ü) properly sent to my application.
This works perfectly fine in my local system where I am not using apache web server. But fails when I deploy the same code to QA, where the Apache webserver is used.
Kindly help me in this case |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Mar '13 13:03 Post subject: |
|
|
Umlauts like ä ö ü and other funny characters like ß are displayed correct with UTF-8 if the documents are safe in UTF-8. If not you may try ISO-8859-1 as default character set. |
|
Back to top |
|
gajjirajkumar
Joined: 25 Mar 2013 Posts: 2 Location: india,hyderabad
|
Posted: Tue 26 Mar '13 14:07 Post subject: |
|
|
Even i have tried it also but no use |
|
Back to top |
|
CamaroSS
Joined: 24 Jan 2013 Posts: 78 Location: RF, Tver
|
Posted: Tue 26 Mar '13 14:23 Post subject: |
|
|
Check the encoding the browser selects when browsing.
If it is already UTF-8, check if all the scripts and documents containing international characters are converted to UTF-8 w/o BOM.
If it's not, check html metatags (if it is actually HTML) and Content-Type header in the server's response. Wrong encoding may be forced i.e. by "default_charset" option in php.ini file.
Quote: | If not you may try ISO-8859-1 as default character set. |
I think there's no good reason NOT to use Unicode. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Mar '13 15:43 Post subject: |
|
|
CamaroSS wrote: |
I think there's no good reason NOT to use Unicode. |
Sure! That I why I own this shirt http://www.amazon.de/getDigital-Schei-Encoding/dp/B001M9FAM6 , but sometimes also I have to live with crappy code and or enconding from customers from germany
I think checking the HTML code is a good idea. |
|
Back to top |
|
|
|
|
|
|