Ask Your Question

Revision history [back]

click to hide/show revision 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