Problem with folders and files with à é è in their names
This is my environment: Server:windows 2012 Database:mysql 5.5.28 Client:1.1.3 OC-Version:4.5.4 PHP-Version:5.3.19
Two faces of the same problem:
-
On Owncloud web interface, when I create a new text document containing special chars (like é à è or umlaut), the file is named with strange chars on the NTFS filesystem. For instance a file named 'tést.txt' on the web interface appears as 'tést' on NTFS.
-
On the local NTFS file system, when I create a new text file containing special chars (like é à è or umlaut), Owncloud crashes with this error: "[13-Dec-2012 16:37:26 UTC] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xE9.txt' for column 'name' at row 1' in D:\owncloud\web\cloud\lib\db.php:731"
I have written a post concerning this problem on the OC forum: http://forum.owncloud.org/viewtopic.php?f=3&t=7015
From what I have understood, the problem is not with Mysql. The problem is between PHP code and NTFS: "The problem is that Windows uses utf-16 for filesystem strings, whereas Linux and others use different character sets, but often utf-8. You provided a utf-8 string, but this is interpreted as another 8-bit character set encoding in Windows, maybe Latin-1, and then the non-ascii character, which is encoded with 2 bytes in utf-8, is handled as if it was 2 characters in Windows." (Source: http://stackoverflow.com/questions/1525 ... -8-strings)
I have also found other interesting readings that could explain this problem: http://stackoverflow.com/questions/6634 ... 24#6634924 http://www.rooftopsolutions.nl/blog/fil ... ng-and-php
I think there are many other people with this issue because I am pretty sure I am not the first one to have windows as operating system and having files named with different sorts of accents (there are accents in italian words, french, german, etc).
Nobody in here?
Nobody in here?
Pong! ;-)
But afaik nobody (within the dev team) here uses Windows server environment - sorry. I organized to get access to a reference system some days ago - I hope to find the time to digg into these issues.
Thanks for your pong, Thomas :-)
I hope you can get a Windows server to test on. As I said in the forum, I started many installations from scratch (both on W2008 R2 and Windows 2012) and none of them seem to be able to correctly handle special characters.
Now that I think of it... I wonder who wrote the install instructions (http://owncloud.org/support/windows-server/) for OC on WIndows if you say that no developer has tested it on Windows...
UP! Any news, Thomas? Have you been able to set up a Windows environment?
Meanwhile I have found this workaround: http://www.happysysadm.com/2012/12/how-to-normalize-special-characters-in.html
Of course it is not a long term solution, but in the short term I will do that way.
As far as I can tell up to now we should setup and use multibyte-string support more rigid.
What do you mean? In what way having a rigid mb support could solve this bug and improve interoperability in an international Windows environment?
We solved a lot of encoding issues on Linux server environment by setting the correct locale. Afaik this will not work on Windows. The only way to get true utf handling through out the whole application seems to be possible with multibyte support. But then we still might face issues with ntfs.
Seems like I have to start developing ownCloud on Windows :angry:
"Seems like I have to start developing ownCloud on Windows :angry:"
I take it as a good news ;-)
PhpStorm+IIS+MySql on Windows 7 is up and running. I'll start debugging and testing on Windows the next days - please be patient! ;-)
refs #94
Hi,
I think this might be a problem of PHP itself. After some research I found the following bug report: https://bugs.php.net/bug.php?id=46990.
Cheers,
Tobias
LOL they'll fix it with php 6.0
The only workaround is to use COM on Windows.
-------- Ursprüngliche Nachricht --------
Von: irgsmirx [email protected]
Datum:
An: owncloud/core [email protected]
Cc: Thomas Müller [email protected]
Betreff: Re: [core] Problem with folders and files with à é è in their names (#959)
Hi,
I think this might be a problem of PHP itself. After some research I found the following bug report: https://bugs.php.net/bug.php?id=46990.
Cheers,
Tobias
— Reply to this email directly or view it on GitHub.
Hi,
i've just ran into the same problem which makes owncloud unuseable for me actually :-( Any file which is created, uploaded or synced which contains special characters or umlauts is totally weird on the NFTS file system.
Not sure if this is a PHP problem: A try with Ajaxplorer (also running on PHP, same machine also on the same IIS) showed that this worked out of the box. So the bug seems to be back to owncloud.
@DeepDiver1975 : What do you mean with your Workaround? Did you find a solution to get no "Umlaut" problem with Windows?
Did anyone do anything to fix this? In my 4.5.6 those characters now work fine. Not that I would complain :-).
I'm working hard to get a solution up and running for OC5. Currently out of scope for 4.5.x Sorry
@MannyRik please test OC5 RC1 - We added some support for Windows. Thanks a lot!
No issue in Linux it seems. So the bug seems to be related at least. I read it generally, but I didn't consider it the same since my issue resulted in data loss (on the client), which quite frankly is a different level of concern for users. It appears to affect all users with OC server on Windows.
And I just realized another risk from a quick test. It seems that if you modify the affected file it won't necessarily match the previous one on the server, so a 2nd file is created on the server. :o I didn't wait long enough, but I suspect that 2nd file might sync back down to the client as a 3rd file?
An amplification attack?
This issue is resolved as far as I can tell. Please open a new issue. THX