Re: Unicode in cgi-script with apache2

2014-08-17 Thread Dominique Ramaekers
t-Length', str(len(output)))] start_response(status, response_headers) return [output] Gives in the browser as output: Hello World! é ü à ũ And if I check the encoding with the python script (uncommenting line #1), I still get ANSI_X3.4-1968 This is really getting on my nerves. Op

Re: Unicode in cgi-script with apache2

2014-08-17 Thread Dominique Ramaekers
Yes, even a restart not just reload. I Also put it in the section as in the main apache2.conf Op 17-08-14 om 13:04 schreef Peter Otten: Dominique Ramaekers wrote: Putting the lines in my apache config: AddDefaultCharset UTF-8 SetEnv PYTHONIOENCODING utf-8 Cleared my brower-cache... No

Re: Unicode in cgi-script with apache2

2014-08-17 Thread Dominique Ramaekers
ncoding1 => is the cgi-script of this test http://cloudserver.ramaekers-stassart.be/wsgi => is the wsgi sollution (but for now it just says 'Hello world'...) This configuration----- dominique@cloudserver:/var/www/cgi-python$ cat /etc/default/

Re: Unicode in cgi-script with apache2

2014-08-16 Thread Dominique Ramaekers
re Windows is better in encoding issues :P +1 for Microsoft... I think that Apache (*nix versions) doesn't tell Python, she's accepting UTF-8. Or Python doesn't listen right... Maybe I should place a bug report in both projects? Op 17-08-14 om 04:50 schreef Denis McMahon:

Re: Unicode in cgi-script with apache2

2014-08-16 Thread Dominique Ramaekers
evious message. Thanks anyway. grz Op 16-08-14 om 18:40 schreef Denis McMahon: On Fri, 15 Aug 2014 20:10:25 +0200, Dominique Ramaekers wrote: #!/usr/bin/env python3 print("Content-Type: text/html") print("Cache-Control: no-cache, must-revalidate")# HTTP/1.1 print("

Re: Unicode in cgi-script with apache2

2014-08-16 Thread Dominique Ramaekers
Op 16-08-14 om 13:17 schreef Peter Otten: Dominique Ramaekers wrote: I've got a little script: #!/usr/bin/env python3 print("Content-Type: text/html") print("Cache-Control: no-cache, must-revalidate")# HTTP/1.1 print("Expires: Sat, 26 Jul 1997 05:00:00 GMT&quo

Re: Unicode in cgi-script with apache2

2014-08-16 Thread Dominique Ramaekers
eef John Gordon: In Dominique Ramaekers writes: #!/usr/bin/env python3 print("Content-Type: text/html") print("Cache-Control: no-cache, must-revalidate")# HTTP/1.1 print("Expires: Sat, 26 Jul 1997 05:00:00 GMT") # Date in the past print("")

Re: Unicode in cgi-script with apache2

2014-08-16 Thread Dominique Ramaekers
ython (in apache)... So I'll use wsgi, It's a little more work but it seems really neat... grtz Op 15-08-14 om 21:27 schreef alister: On Fri, 15 Aug 2014 20:10:25 +0200, Dominique Ramaekers wrote: Hi, I've got a little script: #!/usr/bin/env python3 print("Content-Ty

Unicode in cgi-script with apache2

2014-08-15 Thread Dominique Ramaekers
#x27;t decode byte 0xc3 in position 1791: ordinal not in range(128) I've done a hole afternoon of reading on fora and blogs, I don't have a solution. Can anyone help me? Greetings, Dominique. -- https://mail.python.org/mailman/listinfo/python-list

importing module

2010-09-09 Thread Holzwarth, Dominique (Berne Branch)
my Python installation so that it'll be in the standard module search path? Thx & greets Dominique * This e-mail and any files attached are strictly confidential, may be legally privileged and are intended solel

Re: How to convert a ">" into a >

2008-06-22 Thread dominique
On Jun 22, 6:45 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > dominique <[EMAIL PROTECTED]> wrote: > >On Jun 21, 1:37 pm, John Machin <[EMAIL PROTECTED]> wrote: > > >> Look at the operator module. In your above example: > > >> return {

Re: How to convert a ">" into a >

2008-06-21 Thread dominique
On Jun 21, 1:37 pm, John Machin <[EMAIL PROTECTED]> wrote: > > Look at the operator module. In your above example: > > return { >'>': operator.gt, >'=': operator.eq, >'<': operator.lt, >}[variable] > > Cheer

How to convert a ">" into a >

2008-06-21 Thread dominique
uot;: return > But this is invalid syntax. How can I transform a ">" into the > operator ie without parenthesis, so that I can load it into another function ? Thanks in advance Dominique -- http://mail.python.org/mailman/listinfo/python-list

RE: Problem with PARAGRAPH SEPARATOR

2008-03-20 Thread Dominique . Holzwarth
Actually that's what I tried to do, for example: outputString = myString.encode('iso-8859-1','ignore') However, I always get such messages (the character, that's causing problems varies, but its always higher than 127 ofc...) 'ascii' codec can't decode byte 0xc3 in position 51: ordinal not in r

Problem with PARAGRAPH SEPARATOR

2008-03-20 Thread Dominique . Holzwarth
my output file has such a character but I'd kinda like to keep it there and just be able to store the string in a file object / print it to console... Thanks in advance Dominique * This e-mail and any files attached are strictly confidential, may be legally p

Pyrex installation on windows XP: step-by-step guide

2007-09-26 Thread Dominique Pignon
le module n'est pas reconnu: >>> primes Traceback (most recent call last): File "", line 1, in -toplevel- primes NameError: name 'primes' is not defined que se passe-t-il? cela doit sans doute être trivial merci de me répondre Dominique Pignon-- http://mail.python.org/mailman/listinfo/python-list

Re: Install Mac OS X - Idle doesn't show up

2007-09-14 Thread Dominique
;t understand Thank you Kevin for your help Dominique -- http://mail.python.org/mailman/listinfo/python-list

Re: Install Mac OS X - Idle doesn't show up

2007-09-14 Thread Dominique
Dominique gmail.com> writes: > > One precision: When I go in the console and type idle, it works: idle appears. But I would like to be able to launch idle from the dock Dominique -- http://mail.python.org/mailman/listinfo/python-list

Install Mac OS X - Idle doesn't show up

2007-09-14 Thread Dominique
also impossible to open any .py file. I am sure some of you have a good idea of what to do (path,...). Thanks in advance Dominique -- http://mail.python.org/mailman/listinfo/python-list

Python and VT100

2005-03-05 Thread Dominique Bouré
Using Python (Command line version, not IDLE, nor pythonwin) With Linux, print "\033[33mHello" prints a brown hello. Fine! With Windows, the VT100 sequence seems to be unknown? Why? and how can I correct that? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Reinstall python 2.3 on OSX 10.3.5?

2005-02-03 Thread Dominique O. Martel
0) compile and install GNU readline 5.0 with the usual ./configure method ftp://ftp.cwru.edu/pub/bash/readline-5.0.tar.gz 1) as an administrator, remove the contents of "/System/Library/Frameworks/Python.framework" 2) install Python from the standard distribution: ./configure --enable-framework=