On 2/3/06, tnleeuw <[EMAIL PROTECTED]> wrote:
> I'm storing directory names in a database. At first I was reading the
> directory-names as plain strings, and all was well. Then I ran across a
> file that was in some strange (cyrillic) encoding and the database
> (which was configured for UTF-8 encoding) rejected the string.
> So I added a small bit of code to read the files using Unicode
> expecting this to solve my problem -- but no! I got a new error, and
> one that quite baffles me.

Hey Tim,

I've answered your question in your other thread, but I'll just say
again, for the sake of the archives, that you need to use .encode() on
any Unicode string before passing it to the database layer.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to