[Zope] Zope 2.6.1 and UTF-8
Toby Dickenson
tdickenson at geminidataloggers.com
Wed Sep 10 18:00:33 EDT 2003
On Wednesday 10 September 2003 16:56, Mark Barratt wrote:
> >> Hmmm, that's interesting. I'd been planning on keeping everything as
> >> UTF-8 encoded strings rather than actual unicode. What leads you to
> >> suggest storing everything as unicode?
> UTF-8 is one way of encoding Unicode character-sets. They are not
> different things.
I think Chris was referring to python's unicode type, rather than Unicode in
general.
He was planning to store his Unicode values utf8 encoded in plain 8-bit string
objects, rather than as unicode objects
> When you use UTF-8 you are using Unicode.
>>> type(u'hello')
<type 'unicode'>
>>> type(u'hello'.encode('utf8'))
<type 'str'>
But Im sure you knew that.
--
Toby Dickenson
More information about the Zope
mailing list