[web2py] Re: unicode problem in DAL

2012-03-09 Thread Phyo Arkar
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

Re: [web2py] Re: unicode problem in args?

2012-03-03 Thread Jonathan Lundell
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

Re: [web2py] Re: unicode problem in args?

2012-03-03 Thread Anthony
> > (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

Re: [web2py] Re: unicode problem in args?

2012-03-03 Thread Jonathan Lundell
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

Re: [web2py] Re: unicode problem in args?

2012-03-03 Thread Anthony
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

Re: [web2py] Re: unicode problem in args?

2012-03-03 Thread Vasile Ermicioi
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

[web2py] Re: unicode problem in DAL

2011-06-01 Thread Massimo Di Pierro
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

Re: [web2py] Re: unicode problem in DAL

2011-06-01 Thread Phyo Arkar
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.

[web2py] Re: unicode problem in DAL

2011-05-31 Thread Massimo Di Pierro
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

[web2py] Re: unicode problem

2010-01-20 Thread selecta
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] Re: unicode problem

2010-01-20 Thread mdipierro
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 å