String encoding and unicode

Strings used in GSTPy are standard python strings.

The character encoding is Windows-1252.


If you put in any other encoding, you might get garbled results, especially with characters outside of the ASCII set.

Interfacing with python’s unicode strings

  • use unicode.decode('cp1252') to get a string encoded in Windows-1252 from a unicode string.
  • use str.encode('cp1252') to get a unicode string from a Windows-1252 encoded string.