Rollback
Windows: Handling of filenames in UTF-8

Intro: ownCloud does not work properly in Windows when characters such
as áéíóú are used
This has been tested under IIS 7.5 with PHP 5.5 and MySQL 5.6

Problem: An exception occurred while executing
'INSERT INTO `oc_file_map` (`logic_path`, `physic_path`,
`logic_path_hash`, `physic_path_hash`) VALUES (?, ?, ?, ?)'
: SQLSTATE[HY000]: General error: 1366 Incorrect string value:
'\xE9.txt' for column 'logic_path' at row 1

Analysis: PHP does not handle properly file names in Windows with
characters that are not ASCII

Solution: Use FileSystemObject to access the files and use the "short
path" when calling internal PHP functions

Patch: The patch is ONLY for Windows (using php_uname('s') to detect the
OS)
This is not a full solution yet, it only works for reading operations
For the patch to work the extension 'php_com_dotnet.dll' must be enabled
Please clear the tables file_map and filecache before applying the patch
DELETE FROM oc_file_map;
DELETE FROM oc_filecache;

Limitations: Some languages such as Greek and Russian still do not work
with this approach
https://bugs.php.net/bug.php?id=65358

http://grokbase.com/t/php/php-windows/137x1fa5y8/php-cant-resolve-8-3-paths-to-unicode-filenames-is-that-expected