You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Special characters (German Umlauts äöü) with ownCloud 6.0.0a #6481
I had this issue, too after updating from owncloud 6.0.0 to 6.0.0.a.
If you try to edit the wrong encoded Names in owncloud they are still wrong in the DB.
If you edit the names within the DB (phpmyadmin) they are fixed.
is there any chance to rescue the data with an update? my last backup was some days ago, i would loose some dates.
if not, i would delete my whole owncloud instance and jump back to a 6.0.0 backup - so i do not loose more dates.
this 6.0.0a update was not marked as alpha, beta, rc, testing or sth like this, was it? as an enduser i would be happy if you could provide a solution :-P
@karlitschek Because of the low PHP version, the data has been written in non-UTF8 encoding, but since UTF8 has been fixed, is now interpreted as UTF8.
@karlitschek Yes, kind of, and unfortunately. Files are not that big of an issue because they can just be reread from the disk, but stuff like calendar entries may be. Users with low PHP versions should upgrade from oC 5 to oC 6.0.0a directly, if possible.
does someone know if this problem still exists if i do a very clean new installation of OC 6.0a and import my calendar and contact-files?
this is a showstopper for me, destroying data should never ever happen (like linus sais: never break userspace ;-) )
@stefan-niedermann the workaround I guess would be to reinstall ownCloud from scratch without all your data
For files: re-upload them, sharing info would be lost unfortunately.
For calendar and contacts, if you use sync (for example Android sync client) your device should still have all your contacts and events, so it might be possible to tell it to reupload them to the server after the fresh install. (I haven't tried, just guessing)
This obviously only works if you're the only user.
Sorry for inconvenience, but as said above this was caused by an older PHP version that messed up your data 😦
I did this when i saw the "errors" in 6.0.0a. i installed owncloud new and uploaded all files again.
so i'm actually on 6.0.0a and i don't have any problems.
the question is: will the problems get back if i upgrade from 6.0.0a to 6.0.1...
Since you uploaded all files again, then their names should have the right encoding, so upgrading shouldn't be an issue.
Not sure about your contacts/calendars though, they might still have the old encoding.
this issue still persists and happens all the time, i try to update to a newer owncloud version if my php version is too old.
i-m on a shared hoster so i can not update php.
currently i download all the files, install a complete new instance (with up to date owncloud version) and then upload all the files again.
Activity
Wikinaut commentedon Dec 18, 2013
@stefan-niedermann Stefan: what database and PHP versions are you using ?
or look to your owncloud admin page (I think, versions are listed there. If not, I have to file another issue...)
kev300 commentedon Dec 18, 2013
I had this issue, too after updating from owncloud 6.0.0 to 6.0.0.a.
If you try to edit the wrong encoded Names in owncloud they are still wrong in the DB.
If you edit the names within the DB (phpmyadmin) they are fixed.
In my case all DB tables are utf8_unicode_ci
mysql: 5.1.72-2 - (Debian)
PHP: 5.3.3-7+squeeze18
stefan-niedermann commentedon Dec 18, 2013
PHP Version 5.3.3-7+squeeze17
mysql 5.1.72
karlitschek commentedon Dec 18, 2013
@bantu Do you know what this is?
kev300 commentedon Dec 18, 2013
By the way: The versions are not shown on my admin page in owncloud. ;-)
stefan-niedermann commentedon Dec 18, 2013
@kev300 me neither
is there any chance to rescue the data with an update? my last backup was some days ago, i would loose some dates.
if not, i would delete my whole owncloud instance and jump back to a 6.0.0 backup - so i do not loose more dates.
this 6.0.0a update was not marked as alpha, beta, rc, testing or sth like this, was it? as an enduser i would be happy if you could provide a solution :-P
if you need more info, please feel free to ask!
bantu commentedon Dec 18, 2013
@karlitschek Because of the low PHP version, the data has been written in non-UTF8 encoding, but since UTF8 has been fixed, is now interpreted as UTF8.
karlitschek commentedon Dec 18, 2013
@bantu so that means that all the the files with special characters are lost for users with older php versions?
bantu commentedon Dec 18, 2013
@karlitschek Yes, kind of, and unfortunately. Files are not that big of an issue because they can just be reread from the disk, but stuff like calendar entries may be. Users with low PHP versions should upgrade from oC 5 to oC 6.0.0a directly, if possible.
karlitschek commentedon Dec 18, 2013
So it does work of someone upgrades to 6.0.0a directly? Could it be a dirty workaround to rescan the filenames during upgrade for old php versions?
PVince81 commentedon Dec 18, 2013
@bantu would something like these show a way to help fixing it:
http://stackoverflow.com/questions/4070642/converting-mysql-tables-from-latin1-to-utf8
http://stackoverflow.com/questions/17049903/converting-mysql-table-with-incorrectly-encoded-data-to-utf-8
stefan-niedermann commentedon Dec 18, 2013
what about an update which checks hardcoded something like this:
if(language == german) replace in database "ü" with "ü"
PVince81 commentedon Dec 18, 2013
That would limit it to German... there are other languages which might be affected as well.
Can you try the following command:
(where "owncloud" is the name of your DB)
I guess they'll anyway all be "utf-8", but the old PHP wrote the wrong contents inside.
Still would be good to have this info.
stefan-niedermann commentedon Dec 18, 2013
default_character_set_name+
utf8
stefan-niedermann commentedon Dec 30, 2013
does someone know if this problem still exists if i do a very clean new installation of OC 6.0a and import my calendar and contact-files?
this is a showstopper for me, destroying data should never ever happen (like linus sais: never break userspace ;-) )
stefan-niedermann commentedon Jan 23, 2014
Is the upgrade from 6.0.0a to 6.0.1 also affected?
PVince81 commentedon Jan 23, 2014
I think the upgrade won't help but you can have a try.
Seems your database is set to utf8 but contains non-utf8 characters.
@bantu @icewind1991 any idea how to repair this special case ?
PVince81 commentedon Jan 23, 2014
@stefan-niedermann the workaround I guess would be to reinstall ownCloud from scratch without all your data
For files: re-upload them, sharing info would be lost unfortunately.
For calendar and contacts, if you use sync (for example Android sync client) your device should still have all your contacts and events, so it might be possible to tell it to reupload them to the server after the fresh install. (I haven't tried, just guessing)
This obviously only works if you're the only user.
Sorry for inconvenience, but as said above this was caused by an older PHP version that messed up your data 😦
stefan-niedermann commentedon Jan 23, 2014
I did this when i saw the "errors" in 6.0.0a. i installed owncloud new and uploaded all files again.
so i'm actually on 6.0.0a and i don't have any problems.
the question is: will the problems get back if i upgrade from 6.0.0a to 6.0.1...
PVince81 commentedon Jan 23, 2014
Since you uploaded all files again, then their names should have the right encoding, so upgrading shouldn't be an issue.
Not sure about your contacts/calendars though, they might still have the old encoding.
vgezer commentedon Apr 5, 2014
I think this is not reproducible anymore.
stefan-niedermann commentedon Apr 5, 2014
this issue still persists and happens all the time, i try to update to a newer owncloud version if my php version is too old.
i-m on a shared hoster so i can not update php.
currently i download all the files, install a complete new instance (with up to date owncloud version) and then upload all the files again.
karlitschek commentedon Dec 5, 2014
Can´t be produced. Probably triggered by some old chaset problems in older ownCloud version. I assume this is fixed. If not please reopen
chrisnew commentedon Dec 5, 2014
For the record: I once had troubles using LANG=en_DE. Now I'm using en_US and now it's working properly.