Repository: Serene-Arc/bulk-downloader-for-reddit

Issue #952: UnicodeEncodeError: 'charmap' codec can't encode characters in position 135-140: character maps to <undefined>
Created: 2024-03-16T07:10:33Z
[2024-03-16 00:08:33,567 - bdfr.downloader - INFO] - Downloaded submission vsas80 from FortniteXPFarm
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\rootf\anaconda3\Lib\logging_init_.py", line 1113, in emit
stream.write(msg + self.terminator)
File "C:\Users\rootf\anaconda3\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 135-140: character maps to 
Call stack:
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\rootf\anaconda3\Scripts\bdfr.exe_main.py", line 7, in 
sys.exit(cli())
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr_main.py", line 118, in cli_download
reddit_downloader.download()
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 50, in download
self._download_submission(submission)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 99, in download_submission
logger.debug(f"Using {downloader_class.name} with url {submission.url}")
Message: 'Using SelfPost with url https://www.reddit.com/r/party_fortnite/comments/110d74f/بهترین_کویر/'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\rootf\anaconda3\Lib\logging_init.py", line 1113, in emit
stream.write(msg + self.terminator)
File "C:\Users\rootf\anaconda3\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 157-162: character maps to 
Call stack:
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\rootf\anaconda3\Scripts\bdfr.exe_main.py", line 7, in 
sys.exit(cli())
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr_main.py", line 118, in cli_download
reddit_downloader.download()
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 50, in download
self._download_submission(submission)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 116, in _download_submission
logger.debug(f"Download filter removed {submission.id} file with URL {submission.url}")
Message: 'Download filter removed 110d74f file with URL https://www.reddit.com/r/party_fortnite/comments/110d74f/بهترین_کویر/'
Arguments: ()
[2024-03-16 00:08:33,933 - bdfr.downloader - INFO] - Downloaded submission 110d74f from party_fortnite

Duplicate issue #953: UnicodeEncodeError: 'charmap' codec can't encode character
Created: 2024-03-23T07:46:14Z
[2024-03-23 00:09:50,266 - bdfr.downloader - INFO] - Downloaded submission hqsu1j from FortniteHacks
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\rootf\anaconda3\Lib\logging_init_.py", line 1113, in emit
stream.write(msg + self.terminator)
File "C:\Users\rootf\anaconda3\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u010d' in position 132: character maps to 
Call stack:
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\rootf\anaconda3\Scripts\bdfr.exe_main.py", line 7, in 
sys.exit(cli())
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr_main.py", line 118, in cli_download
reddit_downloader.download()
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 50, in download
self._download_submission(submission)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 99, in download_submission
logger.debug(f"Using {downloader_class.name} with url {submission.url}")
Message: 'Using SelfPost with url https://www.reddit.com/r/FortniteCZSK/comments/nz7lsn/čaute_ľudia_chcel_by_dakto_acc_fortnite/'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\rootf\anaconda3\Lib\logging_init.py", line 1113, in emit
stream.write(msg + self.terminator)
File "C:\Users\rootf\anaconda3\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u010d' in position 153: character maps to 
Call stack:
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\rootf\anaconda3\Scripts\bdfr.exe_main.py", line 7, in 
sys.exit(cli())
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr_main.py", line 118, in cli_download
reddit_downloader.download()
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 50, in download
self._download_submission(submission)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 116, in _download_submission
logger.debug(f"Download filter removed {submission.id} file with URL {submission.url}")
Message: 'Download filter removed nz7lsn file with URL https://www.reddit.com/r/FortniteCZSK/comments/nz7lsn/čaute_ľudia_chcel_by_dakto_acc_fortnite/'
Arguments: ()
[2024-03-23 00:09:50,538 - bdfr.downloader - INFO] - Downloaded submission nz7lsn from FortniteCZSK

Closing comment (2024-07-20T03:14:25Z): dupe of #952