xlsx2csv icon indicating copy to clipboard operation
xlsx2csv copied to clipboard

UnicodeEncodeError during convert

Open davidkyles opened this issue 5 years ago • 2 comments

Seeing this error during convert in 0.7.5 but not in 0.7.4

Here was my command – xlsx2csv -s 0 -e myfile.xlsx > myfile.csv

Traceback (most recent call last): File "/usr/local/bin/xlsx2csv", line 4, in import('pkg_resources').run_script('xlsx2csv==0.7.5', 'xlsx2csv') File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 742, in run_script self.require(requires)[0].run_script(script_name, ns) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 1674, in run_script exec(script_code, namespace, namespace) File "/Library/Python/2.7/site-packages/xlsx2csv-0.7.5-py2.7.egg/EGG-INFO/scripts/xlsx2csv", line 1130, in

File "/Library/Python/2.7/site-packages/xlsx2csv-0.7.5-py2.7.egg/EGG-INFO/scripts/xlsx2csv", line 259, in convert

File "/Library/Python/2.7/site-packages/xlsx2csv-0.7.5-py2.7.egg/EGG-INFO/scripts/xlsx2csv", line 305, in _convert

File "/Library/Python/2.7/site-packages/xlsx2csv-0.7.5-py2.7.egg/EGG-INFO/scripts/xlsx2csv", line 339, in _parse

File "/Library/Python/2.7/site-packages/xlsx2csv-0.7.5-py2.7.egg/EGG-INFO/scripts/xlsx2csv", line 463, in parse

UnicodeEncodeError: 'ascii' codec can't encode characters in position 96-103: ordinal not in range(128)

davidkyles avatar Mar 14 '19 00:03 davidkyles

I will need xlsx file to fix it, can you send it to me?

dilshod avatar Mar 14 '19 07:03 dilshod

Sure thing. I imagine it is the the links that are the problem.

On Mar 14, 2019, at 2:55 AM, Dilshod Temirkhodjaev [email protected] wrote:

I will need xlsx file to fix it, can you send it to me?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dilshod/xlsx2csv/issues/171#issuecomment-472741387, or mute the thread https://github.com/notifications/unsubscribe-auth/ACRyGL1-b90bTi5P6MUQ6jXm91_CkBvTks5vWgBjgaJpZM4byScb.

davidkyles avatar Mar 14 '19 13:03 davidkyles