Re: newbie question about unicode

2007-06-23 Thread Gabriel Genellina
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):

Re: newbie question about unicode

2007-06-23 Thread Genie T
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')

Re: newbie question about unicode

2007-06-23 Thread Genie T
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 =

newbie question about unicode

2007-06-22 Thread Genie T
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

Re: newbie question about unicode

2007-06-22 Thread Carsten Haese
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