python-seo-analyzer
python-seo-analyzer copied to clipboard
UnicodeEncodeError when calling print(output_from_parsed_template) for some websites
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:
- 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
Hmm. This one may be a bit tricker but I have some ideas.