[packagekit] Python client

Patryk Zawadzki patrys at pld-linux.org
Thu Sep 25 13:19:10 PDT 2008


On Thu, Sep 25, 2008 at 9:22 PM, Jan Niklas Hasse <jhasse at gmail.com> wrote:
> On Thu, Sep 25, 2008 at 3:09 PM, Sebastian Heinlein <glatzor at ubuntu.com>
> wrote:
>>
>> Hello,
>>
>> why do you convert all strings to utf-8? what is wrong with unicode?
> utf-8 is unicode, isn't it?

Not quite. utf-8 is one of the many ways to store unicode in memory
(or on disk). Python has a native unicode class that should be
preferred over any specific encoding as it always behaves well when
dealing with wide characters (it operated on characters, where all
other strings operate on bytes).

-- 
Patryk Zawadzki



More information about the PackageKit mailing list