Open plmnnk opened 4 years ago
Unicode handling changed between Python 2 and Python 3. Which version of Python has the bug?
On 16.02.20 06:18, Chris Kerr wrote:
Unicode handling changed between Python 2 and Python 3. Which version of Python has the bug?
That's Python 3.
Given that the pysaxsdocument.c module still uses the C saxs_document_read
function, the cause must be that Python changes some setting which affects the behaviour of the C library functions used by libsaxsdocument.
https://www.sasbdb.org/media/intensities_files/SASDCH9.dat This file came in GB 18030 encoding (Chinese government standard), the data can be accessed using libsaxsdocument from C code (autorg, primus) but not from Python code (sasbdb). If one converts this file to UTF-8 - it is correctly read by all applications.