Skip to content

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

Description

@NJStudent1

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 "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions