Open z33kz33k opened 1 month ago
Well, I've just read #5 and thought I'd try to:
with contextlib.suppress(pylibsrcml.exception.srcMLException):
srcml.set_src_encoding("UTF-8")
Lo and behold. It works. So, I guess somebody was a bit overzealous with all those checks :)
This happens:
Trying to do the same via the CLI client works correctly (and the resulting XML has all characters properly encoded):
As per this issue the default srcML's source encoding is
ISO-8859-1
. So, if in my sources there happens to be an author with a foreign name and there's a comment saying that, I can't really use pylibsrcml and would need probably to puppet the CLI client with subprocess... :/I'm on Windows 10, Python 3.7, srcML version:
and pylibsrcml 1.0.0