Yeah , the problem is you cannot store unicode .. Its not web2py fault tho
. thats how Python works.
You have to "Encode" before storing.
So here is how it works:
When you read data from a source , decode.
When you store data to source , encode
After retrieving data from a source (File,Database
On Mar 3, 2012, at 8:39 AM, Anthony wrote:
> (BTW, the thinking behind the raw args option is that you could parse the raw
> args string into request.args early in your model processing, using whatever
> rules you cared to, and then proceed as usual.)
>
> Makes sense. Any reason the raw_args opt
>
> (BTW, the thinking behind the raw args option is that you could parse the
> raw args string into request.args early in your model processing, using
> whatever rules you cared to, and then proceed as usual.)
>
Makes sense. Any reason the raw_args option shouldn't be available when
using the
On Mar 3, 2012, at 8:12 AM, Anthony wrote:
> On Saturday, March 3, 2012 11:04:35 AM UTC-5, elffikk wrote:
> thank you Anthony to pointing to a solution,
> but I was hoping to get a response to that
> http://groups.google.com/group/web2py/browse_thread/thread/917edfcd78f2ae9f/6ee5531b64583573?lnk=g
On Saturday, March 3, 2012 11:04:35 AM UTC-5, elffikk wrote:
>
> thank you Anthony to pointing to a solution,
> but I was hoping to get a response to that
>
> http://groups.google.com/group/web2py/browse_thread/thread/917edfcd78f2ae9f/6ee5531b64583573?lnk=gst&q=unicode+args#6ee5531b64583573
>
Not
thank you Anthony to pointing to a solution,
but I was hoping to get a response to that
http://groups.google.com/group/web2py/browse_thread/thread/917edfcd78f2ae9f/6ee5531b64583573?lnk=gst&q=unicode+args#6ee5531b64583573
You store unicode by passing it encoded.
On Jun 1, 4:01 am, Phyo Arkar wrote:
> So the value has to be Endcoded From Unicode into UTF8 before
> inserting? i am sure keys are str.
>
> We cannot store Unicode values ?
>
> On 5/31/11, Massimo Di Pierro wrote:
>
>
>
>
>
>
>
> > I am not sure there i
So the value has to be Endcoded From Unicode into UTF8 before
inserting? i am sure keys are str.
We cannot store Unicode values ?
On 5/31/11, Massimo Di Pierro wrote:
> I am not sure there is a problem here. I cannot help without seeing an
> example of the data you insert.
>
> If you do:
>
> db.
I am not sure there is a problem here. I cannot help without seeing an
example of the data you insert.
If you do:
db.table.insert(**a)
a must be a dictionary with str key and str (ut8 encoded) values. You
cannot have unicode field names.
Massimo
On May 31, 2:40 am, Phyo Arkar wrote:
> I hav
thanks again, this was easier that I thought :)
On Jan 21, 12:16 am, mdipierro wrote:
> web2py assumes everything is utf8. You have to encode in utf8 before
> passing the list of options to the set.
>
> Calling unicode instead of str would break the case when options are
> helpers.
>
> On Jan 20,
web2py assumes everything is utf8. You have to encode in utf8 before
passing the list of options to the set.
Calling unicode instead of str would break the case when options are
helpers.
On Jan 20, 5:06 pm, selecta wrote:
> in my application I use some unicode characters
> when i tried to add å
11 matches
Mail list logo