Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError: 'charmap' codec can't encode character '\u0144' in position 75: character maps to #12

Open
NJStudent1 opened this issue Jun 19, 2022 · 0 comments

Comments

@NJStudent1
Copy link

Hi,

My issue is similar to a closed issue - #10

I checked the convert_xml2.py file and its contents are same as what was recommended as a solution for using python 3.7 and above on Windows in the closed issue. I also tried python -X utf8 on command prompt but still get an error which I am sharing below. Kindly help in resolving this. Thanks!

from patentpy.acquire import get_bulk_patent_data

get_bulk_patent_data(year = 2017, week =1,output_file="filepath\\df2017w1a.csv")

error - "File "C:\ProgramData\Anaconda3\lib\site-packages\patentpy\convert_xml2.py", line 229, in convert_xml2_to_df xml2_to_df(curr_file, output_file if output_file is not None else temp_output_file, append, header) UnicodeEncodeError: 'charmap' codec can't encode character '\u0144' in position 75: character maps to "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant