Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-15-2008, 05:53 AM   #1
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
Question How to set Charset to UTF-8 in Apache for scripts?

I'm on CentOS 5 machine and thought changing default charset of 'ISO-8859-1' to 'UTF-8' is not a big deal in Apache 2.2, so I updated httpd.conf to have this line:
AddDefaultCharset UTF-8
Restarted Apache and open default page in Firefox:
it showing good 'UTF-8'. Now when I try to run perl scripts:
it shows 'ISO-8859-1' charset instead of expected 'UTF-8' while checking from browser. We are not setting any specific config in perl and Apache should report Charset as 'UTF-8'.

How can I force Apache to set UTF-8 for all contents it serve, including perl scripts? Kindly suggest, I'm out of ideas...



apache, charset, perl, scripts, utf8

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set the right charset (or desired) amimusa Debian 1 04-05-2007 04:07 AM
Conversion from character set 'UTF-8' to @local error Postgre Slackware 2 09-11-2006 10:15 PM
UTF-8 charset int ext3 ApuX Linux - Software 2 07-12-2006 01:09 PM
charset in Apache 2 swmok Linux - Software 2 06-14-2005 02:57 AM
charset "UTF-8" not supported, using "ISO8859-1". satishpatel Linux - Software 3 04-09-2004 08:11 AM

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration