diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 443d2609c96..61b94d84c44 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2121,7 +2121,8 @@ def replace_insane(char): if restricted and (char in '!&\'()[]{}$;`^,#' or char.isspace()): return '_' if restricted and ord(char) > 127: - return '_' + return '' if unicodedata.category(char)[0] in 'CM' else '_' + return char # Replace look-alike Unicode glyphs