Skip to content

UnicodeEncodeError: 'charmap' codec can't encode character '\u03a9' in position 3361: character maps to <undefined> #10

Description

@laptoperist

Here is a code:

import get_bulk_patent_data functionality

from patentpy.acquire import get_bulk_patent_data

download patents from the first week of 1976 and get data frame

patent_data = get_bulk_patent_data(year = 2021, week = 1, output_file = "patent-data-1.csv")

Which results:

Traceback (most recent call last):
File "C:\Users\XXXXXXXXXX\patentpy\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 '\u03a9' in position 3361: 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