2

Can PSSE have UTF-8 encoded bus names?

Does anyone use non-ascii encoded bus names in their PSS/E Saved cases?

e.g.

tillstånd

I am getting some UnicodeDecodeErrors - it might be a cause. Would love to hear if anyone else has gotten it working for them.

Garth's avatar
21
Garth
asked 2013-09-30 23:56:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

The answer is you can have non-ascii characters in PSSE. They are stored in latin1 format inside PSSE.

So if you are reading from a PSSE bus you can get the string for display like this:

ierr, busname  = psspy.notona(200)
busname = busname.decode('latin1')

Now your code will correctly handle languages from all around the world!

JervisW's avatar
1.3k
JervisW
answered 2013-10-19 21:25:39 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer