I would like to process UTF-8 form content using a CGI script. Does anyone know how to configure apache to accept UTF-8 form content? Any help would be appreciated.
To my knowledge, you don't have to do anything for apache to accept utf-8 stuff. For example I upload my genealogy gedcom file in utf-8 and the online program reads and displays data from it with no problem. If I may go off topic here for a sec, are you still trying to get your russian webpages to display correctly? There is a directive in apache that may help in your case. It is AddDefaultCharset. It takes one of three arguments [ On | Off | charset]. The default is Off and the default charset is iso-8859-1. I think you want iso-8859-5. So add this line to your website's vhost container:
AddDefaultCharset iso-8859-5
What this will do is anytime apache serves a text/plain or text/html page it will use the charset you used here.
Thank you for your reply and help, much appreciated!
I did get my web pages to display correctly in the browsers by adding content="text/html; charset=utf-8" to the HTML web pages.
However, the problem I am having is when a Form is submitted, that has utf-8 content, the CGI script retrieves the value=name pairs and they are in hexidecimal, and I need to convert them back to utf-8, the language. Perhaps what I may need now ia a good decoder/comverter? Any ideas would be much appreciated!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.