Serhiy Storchaka added the comment:

See also issue16700.

On Windows there are two sets of API: Unicode and bytes. File names are stored 
in Unicode (UTF-16) in modern filesystems and encoded to bytes by system for 
bytes API. Unfortunately this encoding is lossfull. Windows try to find the 
closest equivalent if the character is not encodable with current codepage (for 
example drops diacritics) and silently replaces it with "?" if can't find 
anything appropriate. We can't do anything with this from Python side except 
using Unicode API.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24672>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to