Weird behaviour with Cyrillic-named files
I have got running:
- ownCloud server running on Windows 7 + latest PHP + latest MySQL,
- Windows sync client running on Windows 7,
- ownCloud web interface opened at a client machine (Windows 7 + latest Firefox).
After I put a cyrillic-named file to a synced directory:
- it uploads ok, but within 30 seconds a baloon tip pops up saying "File removed. XXX.EXT has been removed", and the file vanishes from the synced dir as well.
- but I still see this file via the web interface but with a distorted name (accent-rich letters instead of Cyrillic ones), and I can download/delete etc. the file from the web interface.
- I see the file in a server storage dir (/owncloud/data/MyAccount/files/) with a distorted (accent-rich letters instead of Cyrillic ones) name.
After I drop a cyrillic-named file to a web interface using mouse:
- it appears in a web interface with a CORRECT Cyrillic filename
- it does not appear in the synced dir, although the detailed sync client's logs reads under "Errors" branch: "Files: XXX.EXT File count: Downloaded".
- I see the file in a server storage dir (/owncloud/data/MyAccount/files/) with a distorted in another way (hyphens and numbers instead of Cyrillic ones) name.
@ringmaster any free time available to have a look? THX
Typically, the filenames used on the server are transliterated in some way compared to the original filenames when using non-ASCII characters. It seems like something is going awry here, though. I reproduced the issue on IIS/Windows from both the sync client and the web client:

It seems that the server is accepting the file, but then fails somehow in the transliteration to the filesystem. This can cause issues with the sync client deleting even files it just uploaded, as seen when this kind of thing happens.
I'll need to step through the process to see why this is happening, but I can at least confirm at this point that it does happen.
FYI: I'm using образец.txt and другой.txt for test filenames.
Any update on this ? Is this a duplicate of something else ? I remember seeing many tickets related to file encoding issues in Windows.
Filename encoding issues on Windows are almost always related to the file mapper, which needs a solid review and probably an overhaul to get working properly.
We should consider picking a single ticket for Windows filename encoding issues and mark all of the related issues as dupes until we can merge a PR to solve the issue.
Sounds like a good plan!
Files are treaten correctly in oC7, see #8226