Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
File encoding LC_ALL warning #13185
File encoding LC_ALL warning #13185
Comments
That's a limitation of CPython. Without LC_ALL, Python can't handle non-ASCII characters reliably on Linux, and non-ASCII characters so common in youtube-dl that removing the warning will bring more confusion for youtube-dl users. See http://bugs.python.org/issue28180 for CPython's solution for such scenarios. Update 2018/01/11: CPython 3.7a4 has almost done UTF-8 handling without LC_ALL. |
|
Thanks for sharing this. The key is choosing a locale with ".UTF-8". Other kinds of locales may work but no guarantee. |
|
fix problem with line 14 to: |
|
I using ubuntu 18 and have this problem WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. pls how to fix this on ubuntu server..? |

Please follow the guide below
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.05.23. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
I've reproduced the error on following fresh installed docker based systems:
(additional the error was reproduced on about 5 separate other systems which are using a software which has youtube-dl support, same warning with the same parameter like above)
The error is that the warning:
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.is displayed.I've no idea how I can fix this and think this is an youtube-dl issue because of the fresh new installed systems.
Edit
After generating the locales and set the
LC_ALLenvironment variable it works fine.But are you sure, that you always want to show this warning when the env var is not set?