Re: change string to unicode

2008-12-19 Thread Peter Otten
jyoun...@kc.rr.com wrote: > If I have a string like so: > > a = '\\u03B1' > > and I want to make it display a Greek alpha character, is there a way to > convert it to unicode ('\u03B1')? I tried concatenating it like this: > > '\u' + '03B1' > > but that didn't work. I'm working in Python 3.0

Re: change string to unicode

2008-12-19 Thread Steven D'Aprano
On Fri, 19 Dec 2008 09:19:28 -0600, jyoung79 wrote: > If I have a string like so: > > a = '\\u03B1' > > and I want to make it display a Greek alpha character, is there a way to > convert it to unicode ('\u03B1')? I tried concatenating it like this: > > '\u' + '03B1' > > but that didn't work.

change string to unicode

2008-12-19 Thread jyoung79
If I have a string like so: a = '\\u03B1' and I want to make it display a Greek alpha character, is there a way to convert it to unicode ('\u03B1')? I tried concatenating it like this: '\u' + '03B1' but that didn't work. I'm working in Python 3.0 and was curious if this could be done. Than