Hello,
First of all, thank you very much for CppHeaderParser - a very useful tool. I have been using it over the past few days and came across an error in reading source files that may have utf-8 encoding:
header = CppHeaderParser.CppHeader(self.path);
File "/usr/local/lib/python3.5/site-packages/CppHeaderParser/CppHeaderParser.py", line 2094, in __init__
headerFileStr = "".join(fd.readlines())
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 69: ordinal not in range(128)
I changed the following at (roughly) line 2088 in CppHeaderParser.py:
Hello,
First of all, thank you very much for CppHeaderParser - a very useful tool. I have been using it over the past few days and came across an error in reading source files that may have utf-8 encoding:
I changed the following at (roughly) line 2088 in CppHeaderParser.py:
This seems to solve the issue, but I am not sure what methods need to be tested to ensure this doesn't cause other problems.
Can you attach a file that demonstrates the issue please?