Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character encoding for text #1

Closed
Krolken opened this issue Feb 25, 2022 · 0 comments
Closed

Character encoding for text #1

Krolken opened this issue Feb 25, 2022 · 0 comments
Assignees
Labels
Question for ELGAS A question for ELGAS

Comments

@Krolken
Copy link
Contributor

Krolken commented Feb 25, 2022

What character encoding is to be used when interpreting unit texts in SystemParameters object 0

# system pressure unit text.
data = b'\x00\x00\xa1m\x00\x00\x00\x00'
data.decode('latin-1')
>>> !m

Available encodings:
https://docs.python.org/3.8/library/codecs.html?highlight=latin#standard-encodings

Many other text fields also has as "weird" characters in them.

'Status St1\x00Closed\x00     '
'Spare prim. vol. Vs\x00   '
'Spare base vol. Vbs\x000}"'
'Base flow Qb\x00}?}#} }<} '
@Krolken Krolken self-assigned this Feb 25, 2022
@Krolken Krolken added the Question for ELGAS A question for ELGAS label Feb 25, 2022
@Krolken Krolken changed the title Character encoding for unit text in SystemParameters (object 0) Character encoding for text Mar 3, 2022
@Krolken Krolken closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question for ELGAS A question for ELGAS
Projects
None yet
Development

No branches or pull requests

1 participant