weheh wrote:
> Hi Fredrik,
>
> Thanks again for your feedback. I am much obliged.
>
Bear in mind that in Python, ASCII currently means ASCII, values
0..127. Type "str" will accept values > 127. However, the default
conversion from "str" to "unicode" requires true ASCII values, in
0..127.
> However, the situation is still unacceptable to me because I often make
> mistakes and it is easy for me to miss places where encoding is necessary. I
> rely on testing to find my faults. On my development environment, I get no
> error message and it seems that everything works perfectly. Howe
Hi Fredrik,
Thanks again for your feedback. I am much obliged.
Indeed, I am forced to be exteremely rigorous about decoding on the way in
and encoding on the way out everywhere in my program, just as you say. Your
advice is excellent and concurs with other sources of unicode expertise.
Followi
weheh wrote:
> Hi Fredrik, thanks for responding. After reading up some more on this, I
> think my title should be changed to "How to get Python to default to ASCII".
> In point of fact, I want my 2 environments to agree so that I can debug
> thinkgs more easily. Right now it's a nightmare.
>
Hi Fredrik, thanks for responding. After reading up some more on this, I
think my title should be changed to "How to get Python to default to ASCII".
In point of fact, I want my 2 environments to agree so that I can debug
thinkgs more easily. Right now it's a nightmare.
As to your questions, in
weheh wrote:
> I'm developing a cgi-bin application that must be unicode sensitive. I'm
> striving for a UTF8 implementation. I'm running python 2.3 on a development
> machine (windows xp) and a server (windows xp server). Both environments are
> running Apache 2.2 with the same configuration fi