python-seo-analyzer icon indicating copy to clipboard operation
python-seo-analyzer copied to clipboard

UnicodeEncodeError when calling print(output_from_parsed_template) for some websites

Open Lima-Codes opened this issue 4 years ago • 1 comments

Describe the bug When running the analyzer on https://www.amazon.jobs/en/, the following error occurs:

UnicodeEncodeError: 'charmap' codec can't encode character '\u202f' in position 10874: character maps to <undefined>

The error occurs when calling print(output_from_parsed_template) in __main__.py and seem to be related to the html output option.

When commenting out the print statement, the program finishes but the HTML output report is blank.

To Reproduce Steps to reproduce the behavior:

  1. Run seoanalyze https://www.amazon.jobs/en/ --output-format html

Expected behavior No error. Program executes normally.

Desktop (please complete the following information):

  • OS: Windows 10

Lima-Codes avatar Mar 31 '21 18:03 Lima-Codes

Hmm. This one may be a bit tricker but I have some ideas.

sethblack avatar Apr 04 '21 00:04 sethblack