logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache latin character support
Author
gajjirajkumar



Joined: 25 Mar 2013
Posts: 2
Location: india,hyderabad

PostPosted: Mon 25 Mar '13 23:13    Post subject: Apache latin character support Reply with quote

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

PostPosted: Tue 26 Mar '13 13:03    Post subject: Reply with quote

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

PostPosted: Tue 26 Mar '13 14:07    Post subject: Reply with quote

Even i have tried it also but no use
Back to top
CamaroSS



Joined: 24 Jan 2013
Posts: 78
Location: RF, Tver

PostPosted: Tue 26 Mar '13 14:23    Post subject: Reply with quote

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

PostPosted: Tue 26 Mar '13 15:43    Post subject: Reply with quote

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. Wink
Back to top


Reply to topic   Topic: Apache latin character support View previous topic :: View next topic
Post new topic   Forum Index -> Apache