En Sat, 23 Jun 2007 01:10:19 -0300, Genie T [EMAIL PROTECTED]
escribió:
can anybody tell me whether these two expressions have the same
meanings?
s = u'unicode string here'
s1 = s.encode('utf-8')
AND
s1 = unicode(s,'utf-8')
No - but consider this (assuming your terminal uses utf-8):
On Jun 23, 12:04 pm, Carsten Haese [EMAIL PROTECTED] wrote:
On Sat, 23 Jun 2007 04:10:19 -, Genie T wrote
Hi,
can anybody tell me whether these two expressions have the same
meanings?
s = u'unicode string here'
s1 = s.encode('utf-8')
AND
s1 = unicode(s,'utf-8')
On Jun 23, 1:06 pm, Gabriel Genellina [EMAIL PROTECTED]
wrote:
En Sat, 23 Jun 2007 01:10:19 -0300, Genie T [EMAIL PROTECTED]
escribió:
can anybody tell me whether these two expressions have the same
meanings?
s = u'unicode string here'
s1 = s.encode('utf-8')
AND
s1 =
Hi,
can anybody tell me whether these two expressions have the same
meanings?
s = u'unicode string here'
s1 = s.encode('utf-8')
AND
s1 = unicode(s,'utf-8')
Thanks :)
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 23 Jun 2007 04:10:19 -, Genie T wrote
Hi,
can anybody tell me whether these two expressions have the same
meanings?
s = u'unicode string here'
s1 = s.encode('utf-8')
AND
s1 = unicode(s,'utf-8')
Considering that one works and the other doesn't, no, they don't have the