mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[xattr] Always use UTF-8
On Windows and other systems, other encodings would break when trying to encode non-ASCII characters. Simply use UTF-8, like every sane system.
This commit is contained in:
		| @@ -99,7 +99,7 @@ class XAttrMetadataPP(PostProcessor): | ||||
|                     if infoname == "upload_date": | ||||
|                         value = hyphenate_date(value) | ||||
|  | ||||
|                     byte_value = value.encode(preferredencoding()) | ||||
|                     byte_value = value.encode('utf-8') | ||||
|                     write_xattr(filename, xattrname, byte_value) | ||||
|  | ||||
|             return True, info | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister