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
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
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 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:
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("
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
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("")
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
#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
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
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 {
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
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
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
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
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
;t understand
Thank you Kevin for your help
Dominique
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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=
21 matches
Mail list logo