Re: unicode-branch: string handling

2007-04-18 Thread Ivan Sagalaev
Michael Radziej wrote: > gettext('blablabla %s blablalba') % \ > "utf8 bytestring with funny ää chars" > > If gettext returned unicode, python would decode the utf8 encoded > bytestring, again using ASCII as default encoding -> exception galore ;-) I believe we should teach people to start usi

Re: unicode-branch: string handling

2007-04-17 Thread Michael Radziej
Hi Malcolm Tredinnick wrote: > What I don't think is the right answer is to suddenly start making > gettext() behave as if it were ugettext() -- using the wrong name for > something will lead to confusion for people who use Django as a tool, > not as a lifestyle choice. Certainly. Think about th

Re: unicode-branch: string handling

2007-04-17 Thread Malcolm Tredinnick
Hey Michael, On Tue, 2007-04-17 at 10:31 +0200, Michael Radziej wrote: > Hi Malcom and you all, > > On Tue, Apr 10, Malcolm Tredinnick wrote: > > > What I'd really like from you guys (Michael, Ivan, Gábor -- and anybody > > else who wants to play along) is to see how the code fits in with your

Re: unicode-branch: string handling

2007-04-17 Thread Michael Radziej
Hi Malcom and you all, On Tue, Apr 10, Malcolm Tredinnick wrote: > What I'd really like from you guys (Michael, Ivan, Gábor -- and anybody > else who wants to play along) is to see how the code fits in with your > existing workflow. How do the translation functions gettext() (_()) etc. fit in?

Re: unicode-branch: string handling

2007-04-10 Thread Adam Findley
Gábor Farkas wrote: > i'd like to know about Request objects... how "early" do you plan to > switch to unicode? > > will request.GET/POST already contain unicode-keys + unicode-values? > > what about request.META? > > > i would personally like to have GET/POST already contain unicode data. >

Re: unicode-branch: string handling

2007-04-10 Thread Gábor Farkas
Malcolm Tredinnick wrote: > > What I'd really like from you guys (Michael, Ivan, Gábor -- and anybody > else who wants to play along) is to see how the code fits in with your > existing workflow. What are the bits that are still hard for you? What > are the problems that aren't solved? I'm thinki

Re: unicode-branch: string handling

2007-04-10 Thread Malcolm Tredinnick
On Tue, 2007-04-10 at 12:13 +0200, Michael Radziej wrote: > Hi Malcolm, > > Malcolm Tredinnick wrote: > > It's a much tougher requirement on the developer. They have to change > > every piece of their code. Instead, we can accept UTF-8 bytestrings or > > unicode strings and large amounts of code

Re: unicode-branch: string handling

2007-04-10 Thread Michael Radziej
Hi Malcolm, Malcolm Tredinnick wrote: > It's a much tougher requirement on the developer. They have to change > every piece of their code. Instead, we can accept UTF-8 bytestrings or > unicode strings and large amounts of code will work unchanged. > > There aren't actually that many places where

Re: unicode-branch: string handling

2007-04-10 Thread Malcolm Tredinnick
On Tue, 2007-04-10 at 19:53 +1000, Malcolm Tredinnick wrote: > On Tue, 2007-04-10 at 10:02 +0200, Gábor Farkas wrote: > > hi, > > > > i've been reading http://code.djangoproject.com/wiki/StringEncoding, > > > > and the idea seems to be, that for "Passing Strings Between Django and > > the Devel

Re: unicode-branch: string handling

2007-04-10 Thread Gábor Farkas
Malcolm Tredinnick wrote: > On Tue, 2007-04-10 at 10:02 +0200, Gábor Farkas wrote: >> hi, >> >> i've been reading http://code.djangoproject.com/wiki/StringEncoding, >> >> and the idea seems to be, that for "Passing Strings Between Django and >> the Developer's Code", >> >> django will/should acce

Re: unicode-branch: string handling

2007-04-10 Thread Malcolm Tredinnick
On Tue, 2007-04-10 at 10:02 +0200, Gábor Farkas wrote: > hi, > > i've been reading http://code.djangoproject.com/wiki/StringEncoding, > > and the idea seems to be, that for "Passing Strings Between Django and > the Developer's Code", > > django will/should accept both utf-8 encoded byte-string

unicode-branch: string handling

2007-04-10 Thread Gábor Farkas
hi, i've been reading http://code.djangoproject.com/wiki/StringEncoding, and the idea seems to be, that for "Passing Strings Between Django and the Developer's Code", django will/should accept both utf-8 encoded byte-strings, and unicode-strings. wouldn't it be simpler to only accept unicode