Just spent some time reviewing this - looks OK now, I think I must have 
screwed up somewhere.

All db text fields in web2py are supposed to be bytestrings of <type 
'str'>, right?

On Sunday, May 3, 2015 at 8:15:19 AM UTC-4, Niphlod wrote:
>
> can you post an example app to reproduce the issue ?
>
> On Thursday, April 30, 2015 at 9:18:13 PM UTC+2, Chris wrote:
>>
>> I'm using web2py with PostgreSQL and it's working pretty well, however, 
>> there's a weird problem. When I load a row with a text column in it, that 
>> column isn't one consistent type. It appears as <type 'unicode'> when it 
>> includes extended characters and <type 'str'> when it doesn't. I end up 
>> having to look up the type and call decode on just the strs 
>> <http://stackoverflow.com/questions/8481006/unicodedecodeerror-on-join> 
>> to make sure they all have a consistent type and avoid the dreaded 
>> UnicodeDecodeError.
>>
>> This is causing a bug on my setup which is Linux:
>> 2.9.12-stable+timestamp.2015.01.17.06.11.03
>> (Running on Rocket 1.2.6, Python 2.7.0)
>>
>> Will this/has this been patched? Is this a bug with my version of Python?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to