Am 27.08.2010 18:27 schrieb P.J. Eby:
> At 06:05 PM 8/27/2010 +0200, Christoph Zwerschke wrote:
>> user = 'özkan'.encode('latin1')
>> if user = request.META.get('REMOTE_USER', b'').lower():
>>
>> will not work it the user has logged in as 'Özkan'.
>
> Isn't that a problem with code that does this now?

You mean in Python 2? If the locale is set properly, lower() will account for non-ascii. I don't think Python 3 does this with bytes.

-- Christoph
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to