reading WGREEK encoded sas7bdat file fails
Hi,
I have a wgreek encoded sas7bdat file (I assume in SAS parlance that means windows-1253, but I didn't find any SAS documentation that explains if wgreek is iso or windows encoding), and I get the following errors when calling the constructor:
running either: f = SAS7BDAT("regrdata2.sas7bdat", encoding="windows-1253") or: f = SAS7BDAT("regrdata2.sas7bdat", encoding="iso-8859-7")
gets:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1110-1119: ordinal not in range(128)
running
f = SAS7BDAT("regrdata2.sas7bdat", encoding="utf8")
doesn't raise an exception, but all Greek characters from respective strings in the resulting data file, are missing, and only parentheses and latin characters etc remain, eg
[1.0789035028403, 1.0, 48372.36, 3.0, 1.0, 66397.1, u'', u' ( Status)', u'']
attached you'll find a curtailed sas7bdat file