Jason Tackaberry wrote:
> On Thu, 2005-09-01 at 18:19 +0200, Dirk Meyer wrote:
>> I don't get it? Why use string at all? IMHO we should convert _every_
>> string to Unicode.
>
> [...]
>
>> Not good. Always use unicode inside. If the vfs works with UTF-8 and
>> my system with Latin-1, I get in trouble with strings. So always
>> unicode. 
>
> It will work, because latin-1 strings will get properly converted to
> utf-8.

Yes, you can put everything as utf-8 in the database. But IMHO we
should use unicode all the time. And maybe a user has latin-2 or
something. Or maybe the string already is utf-8. 

> I do see what you're saying, but I can't say offhand if it will work
> because of how pysqlite handles queries "WHERE foo IN ('string1',
> 'string2')".  I agree that it's better to store everything as unicode
> strings.  I'll look into it.

Yes, only unicode should be used inside kaa. We also accept str as
input (e.g. files), but shoul dnever return str ourself.


Dischi

-- 
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" but "That's funny..."' - Isaac Asimov

Attachment: pgpbXioikU8tq.pgp
Description: PGP signature

Reply via email to