10 Sep
2003
10 Sep
'03
4 p.m.
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