The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Christoph Haas <em...@christoph-haas.de>
Date: Sun, 1 Jul 2007 17:05:13 +0200
Local: Sun 1 July 2007 16:05
Subject: Re: How do I set my form to be a unicode string?
On Sun, Jul 01, 2007 at 11:27:38AM -0300, Walter Cruz wrote: Sorry, no. If you like to continue the topic you brought up with another > Well, I asked before search the in the list archives! thread then please use the other thread. I didn't follow the other thread. If you start a new thread then I recommend you put all necessary information into it. > What I needed: You shouldn't need the mako.default_filters setting. IMHO it slows done > tmpl_options['mako.input_encoding'] = 'UTF-8' things unnecessarily. The request_settings parameter does the work already. > In environment.py Very good. > I changed my formencode validator to: UnicodeString and now it's ok. > But I'm with a doubt: You can't. A string contains 7-bit character in Python. So if you use > Even with this, in my templates I've to use: > ${h.link_to(u"Nova citação", h.url(action="new"))} > (Note the u before "Nova citação"). > How can I configure this to avoid to say that this is string is unicode? anything besides 7-bit ASCII you need to use unicode objects. Generally (not only with Pylons) it's wise to always use Unicode internally and just convert them on input/output. Trust me - it will save you time and hassle. Kindly You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||