mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 15:57:23 +00:00
Use getpreferredencoding() instead of getdefaultlocale()
This fixes issue #7 and is recommended after a bug report I made to the Python team: http://bugs.python.org/issue5815
This commit is contained in:
parent
b0eddb2eb4
commit
2f4d18a9f7
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ if __name__ == '__main__':
|
||||||
youtube_search_ie = YoutubeSearchIE(youtube_ie)
|
youtube_search_ie = YoutubeSearchIE(youtube_ie)
|
||||||
|
|
||||||
# File downloader
|
# File downloader
|
||||||
charset = locale.getdefaultlocale()[1]
|
charset = locale.getpreferredencoding()
|
||||||
if charset is None:
|
if charset is None:
|
||||||
charset = 'ascii'
|
charset = 'ascii'
|
||||||
fd = FileDownloader({
|
fd = FileDownloader({
|
||||||
|
|
Loading…
Reference in a new issue