[issue18917] python won't display greek characters in apache under windows

2013-09-06 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - works for me
stage:  - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18917
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18917] python won't display greek characters in apache under windows

2013-09-06 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe that this is *the* answer to the issue, so the issue should be closed.

--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18917
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18917] python won't display greek characters in apache under windows

2013-09-06 Thread Nick

Changes by Nick low...@yahoo.com:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18917
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18917] python won't display greek characters in apache under windows

2013-09-04 Thread Nick

Nick added the comment:

Turns out adding SetEnv PYTHONIOENCODING utf-8 to the end of apache's 
httpd.conf file fixed the problem for me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18917
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18917] python won't display greek characters in apache under windows

2013-09-03 Thread Nick

New submission from Nick:

I've set up apache on Windows 7 and I'm running python with cgi.

I have a script that contains this:
#!C:\Python34\python.exe
print (Content-Type: text/html; charset=utf-8\n)
print (Δοκιμή)

Pretty simple, right? When I'm opening the page to my browser in stead of 
Δοκιμή I get weird ��� symbols (when the browser is set on UTF-8) If I set my 
browser to ISO-8859-7 I will get the normal greek letters.

sys.stdout.encoding will display cp1253 instead of utf-8 as it probably 
should.

scripts with only english characters will work totally fine. the problems seems 
to be on non-english characters. it displays them as ISO-8859-7.

this doesn't seem to be an apache or windows issue as PHP and Lua will run just 
fine and all the scripts will display greek characters in my browser. the 
problem occurs only with python.

--
messages: 196886
nosy: nickl1
priority: normal
severity: normal
status: open
title: python won't display greek characters in apache under windows
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18917
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18917] python won't display greek characters in apache under windows

2013-09-03 Thread Nick

Changes by Nick low...@yahoo.com:


--
components: +Unicode, Windows
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18917
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com