| 1 | initial version |
That u character means that Python is treating the string as unicode.
The Python website has an article explaining its support of unicode though its very long!
In practice, I'm not sure if PSSE accepts unicode strings. For instance could you name a bus like this:
✎၉ꩦꩬ
Probably not right? Even one with umlaut:
nuclëar
might cause a problem. But I've made a note to test this and come back and let you know for sure! If it turns out that PSSE cannot accept those characters here's a way to convert while stripping out any non-ascii ones:
>>> print u'nuclëar'.encode('ascii', 'ignore')
nuclar
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.