Re: unicode bug?

2008-05-15 Thread Karol Tarcak
Great, thank you On Thu, May 15, 2008 at 5:41 PM, Ian Bicking <[EMAIL PROTECTED]> wrote: > > Karol Tarcak wrote: >> rewritingparser.py -> html_quote looks identical + it has the same >> comment to use unicode :) >> >> def html_quote(v): >> if v is None: >> return '' >> elif hasatt

Re: unicode bug?

2008-05-15 Thread Ian Bicking
Karol Tarcak wrote: > rewritingparser.py -> html_quote looks identical + it has the same > comment to use unicode :) > > def html_quote(v): > if v is None: > return '' > elif hasattr(v, '__html__'): > return v.__html__() > elif isinstance(v, basestring): > retu

Re: unicode bug?

2008-05-15 Thread Karol Tarcak
rewritingparser.py -> html_quote looks identical + it has the same comment to use unicode :) def html_quote(v): if v is None: return '' elif hasattr(v, '__html__'): return v.__html__() elif isinstance(v, basestring): return cgi.escape(v, 1) else: #

Re: unicode bug?

2008-05-15 Thread Ian Bicking
There's a good chance this is fixed in FormEncode trunk. Try easy_install FormEncode==dev [EMAIL PROTECTED] wrote: > Hi, > > I am using pylons with formencode and international setting set to > 'cs': > > formencode.api.set_stdtranslation(domain="FormEncode", > languages=['cs']) > > However,

unicode bug?

2008-05-15 Thread [EMAIL PROTECTED]
Hi, I am using pylons with formencode and international setting set to 'cs': formencode.api.set_stdtranslation(domain="FormEncode", languages=['cs']) However, I don't know if it's a problem between the keyboard and chair, I have encountered a few UnicodeErrors. For example I have an login form

Re: Myghty unicode bug [veering OT]

2006-11-03 Thread Shannon -jj Behrens
On 11/3/06, ToddG <[EMAIL PROTECTED]> wrote: > Shannon -jj Behrens wrote: > > I'm not using Myghty or Web helpers, but I can give a brain dump on > > how I'm using encodings since you seemed like you wanted me to: > > Definitely helpful, thanks. It would seem either a) everyone knows this > stuff

Re: Myghty unicode bug

2006-11-03 Thread Shannon -jj Behrens
On 11/3/06, trogdor <[EMAIL PROTECTED]> wrote: > sorry to interrupt, but I do think there's a text_area() issue > unrelated to SQLAlchemy. > In my case, it's when FormBuild validation fails and it tries to render > the text_area. > In FormBuild, invoking a text_area() ultimately instantiates a > W

Re: Myghty unicode bug

2006-11-03 Thread trogdor
sorry to interrupt, but I do think there's a text_area() issue unrelated to SQLAlchemy. In my case, it's when FormBuild validation fails and it tries to render the text_area. In FormBuild, invoking a text_area() ultimately instantiates a WebHelpers/rails text_area object. This, i believe is the sa

Re: Myghty unicode bug [veering OT]

2006-11-03 Thread ToddG
Shannon -jj Behrens wrote: > I'm not using Myghty or Web helpers, but I can give a brain dump on > how I'm using encodings since you seemed like you wanted me to: Definitely helpful, thanks. It would seem either a) everyone knows this stuff and it doesn't need to be mentioned, or b) lots of peopl

Re: Myghty unicode bug

2006-11-03 Thread Shannon -jj Behrens
On 11/2/06, ToddG <[EMAIL PROTECTED]> wrote: > I'm probably least qualified here to answer this, but until someone > else stops by: I hit the same problem on upgrading last night, and dug > around and sort of know what's going on. But my unicode knowledge is > woefully inadequate. > > In short --

Re: Myghty unicode bug

2006-11-03 Thread Shannon -jj Behrens
On 11/3/06, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > This is probably more appropriate for a the myghty list but since many > > pylons users use myghty I thought it appropriate. I get this error: > > > > Error(UnicodeDecodeEr

Re: Myghty unicode bug

2006-11-03 Thread Shannon -jj Behrens
On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > This is probably more appropriate for a the myghty list but since many > pylons users use myghty I thought it appropriate. I get this error: > > Error(UnicodeDecodeError): 'ascii' codec can't decode byte 0xe9 in > position 138: ordinal n

Re: Myghty unicode bug

2006-11-02 Thread ToddG
I'm probably least qualified here to answer this, but until someone else stops by: I hit the same problem on upgrading last night, and dug around and sort of know what's going on. But my unicode knowledge is woefully inadequate. In short -- as of version 1.1, Myghty now supports unicode and is no

Re: Myghty unicode bug

2006-11-02 Thread trogdor
I am getting a similar issue when trying to redisplay a text_area, too. It's similar to this ticket here: http://pylonshq.com/project/pylonshq/ticket/132 And also my post here: http://groups-beta.google.com/group/pylons-discuss/browse_thread/thread/f8871a041c106126 Unfortunately, nothing abou

Myghty unicode bug

2006-11-02 Thread [EMAIL PROTECTED]
This is probably more appropriate for a the myghty list but since many pylons users use myghty I thought it appropriate. I get this error: Error(UnicodeDecodeError): 'ascii' codec can't decode byte 0xe9 in position 138: ordinal not in range(128) When pulling this string: ...almost any style déco