We have a new Centos 4.8 server and have moved all our data and applications, including the legacy but top-notch Perl applications which we use daily.
The previous server was based on charset=ISO-8859-1 and displayed the English text correctly. However, our needs today requires us to change the server character set to UTF-8 to enable our applications to handle several languages on any posted web pages or forum html messages since our communities are located in many countries with different languages. Here is an example of the benefits of UTF-8... http://www.columbia.edu/kermit/utf8.html
We have added the following two lines within the configuration file: /etc/httpd/conf/vhosts/site1
Code: Select all
SetEnv LANG en_US.UTF-8
...and all web pages have these lines within them:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
PROBLEM: There are characters on web pages that do not appear properly when using the CGI applications to generate the pages. For example, a Perl CGI script that is a web form with fields Title, Subject, Message and once submitted makes a web html page, does not display some of the characters correctly, like quotes , , or a long dash . Additionally, foreign languages do not display correctly either. For reference purposes, these CGI scripts use text files and web html pages to write information into and not MySQL. MySQL is in use for another database project.
After researching various websites for a solution in getting Perl CGI programs to work correctly with UTF-8, we are still looking for a solution. Perhaps we need to add additional Perl statements but are unsure of which are effective and efficient. This link was helpful but did not resolve our issues,
http://sites.google.com/site/kbinstuff/ ... ,mod_perla
I appreciate any help from the community.