- changed status to resolved
savWriter fails in case of existing variable sets containing variables with special characters
Issue #39
resolved
Hi AJ,
I recently recognized another error in savreaderwriter. I am doing my usual testing procedure: reading an sav file and its metadata and subsequent writing of the unmodified data. This procedure, which usually works with most of the files I dealt with, fails with a UnicodeEncodeError, if the sav file contains a variable set with a variable that has special characters. This happens in the writer part. The problem seems to be that in header.py it is attempted to decode the strings in the varSet, but they are already of type unicode and no byte strings. I attached a small notebook and an example sav file where the problem occurs.
Cheers, Gerhard
Comments (1)
-
repo owner - Log in to comment
Hi, I just pushed a commit that addresses this: 27369e0. Thanks!