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: python cgi utf-8 font
Author
hemanju



Joined: 08 Jan 2020
Posts: 1
Location: Singapore

PostPosted: Thu 20 Aug '20 6:22    Post subject: python cgi utf-8 font Reply with quote

I am using a python script as a cgi program with Apache 2.4. The html form uses a POST action. the cgi program writes strings containing some UTF-8 fonts (language=gu.
When I test the python code by itself, it writes all strings correctly to stdout (and the __self__ html page in the browser).
But when I start apache 2.4, and use the localhost feature to bring up the main html page, and trigger the cgi by "sending" the form, the lines which contain the UTF-8 fonts in language=gu - that string does not get sent back to the __self__ browser page.
I have tried many many python options and Apache config settings enabling unicode and utf-8 where ever possible. But pure python testing works, but cgi via apache fails at the utf-8 string.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Wed 26 Aug '20 10:30    Post subject: Reply with quote

Does your script send a correct header that it is html with UTF8 ?
Back to top


Reply to topic   Topic: python cgi utf-8 font View previous topic :: View next topic
Post new topic   Forum Index -> Apache