Hi,
view.encoding()
returns the encoding set to a view, in a form that is not sensible for Python. It is just a string describing the encoding, like “Western (Windows 1252)”, instead of cp1252
which can be used as is in code. Even further, when encoding is not available, this function returns “Undefined”, like if I’m coding JavaScript.
I can try to manually write a transfer function, but it seems it would be relevant just for platform I’m currently using.
Is there any reference table, so that I can actually use this function in Python code and be sure that I’ll get right encoding regardless platform?