utf-8 and database models

2007-01-31 Thread Joseph Wenninger
Hi! I'm using an sqlite database with a model which has a Charfield named filepath. I'm trying to store an "utf-8" string there. I tried passing it as a byte string and as a unicode object. Saving works fine, but if I try to access the field I'm always getting: "Could not decode to UTF-8 col

Re: utf-8 and database models

2007-01-31 Thread Michael Radziej
Hi Joseph, Joseph Wenninger: > I'm using an sqlite database with a model which has a Charfield named > filepath. > > I'm trying to store an "utf-8" string there. I tried passing it as a byte > string and as a unicode object. Saving works fine, but if I try to access the > field I'm always get