Skip to content

Special characters (German Umlauts äöü) with ownCloud 6.0.0a #6481

Closed

Description

@stefan-niedermann

Since the upgrade from ownCloud 6.0.0 to 6.0.0a i have an issue in many apps.

expected behaviour: correct encoding

real behaviour:
contact app
2013-12-18_10h10_16

calendar app
2013-12-18_10h11_37

Browser: every.

Activity

  1. Wikinaut commented on Dec 18, 2013

    @Wikinaut
    Contributor

    @stefan-niedermann Stefan: what database and PHP versions are you using ?

    php --version
    mysql --version
    

    or look to your owncloud admin page (I think, versions are listed there. If not, I have to file another issue...)

  2. kev300 commented on Dec 18, 2013

    @kev300

    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

  3. stefan-niedermann commented on Dec 18, 2013

    @stefan-niedermann
    Author

    PHP Version 5.3.3-7+squeeze17
    mysql 5.1.72

  4. karlitschek commented on Dec 18, 2013

    @karlitschek
    Contributor

    @bantu Do you know what this is?

  5. kev300 commented on Dec 18, 2013

    @kev300

    By the way: The versions are not shown on my admin page in owncloud. ;-)

  6. stefan-niedermann commented on Dec 18, 2013

    @stefan-niedermann
    Author

    @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!

  7. bantu commented on Dec 18, 2013

    @bantu

    @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.

  8. karlitschek commented on Dec 18, 2013

    @karlitschek
    Contributor

    @bantu so that means that all the the files with special characters are lost for users with older php versions?

  9. bantu commented on Dec 18, 2013

    @bantu

    @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.

  10. karlitschek commented on Dec 18, 2013

    @karlitschek
    Contributor

    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?

  11. stefan-niedermann commented on Dec 18, 2013

    @stefan-niedermann
    Author

    what about an update which checks hardcoded something like this:

    if(language == german) replace in database "ü" with "ü"

  12. PVince81 commented on Dec 18, 2013

    @PVince81
    Contributor

    That would limit it to German... there are other languages which might be affected as well.

    Can you try the following command:

    SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "owncloud";
    show full columns from oc_filecache;
    

    (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.

  13. stefan-niedermann commented on Dec 18, 2013

    @stefan-niedermann
    Author

    default_character_set_name+
    utf8

  14. stefan-niedermann commented on Dec 30, 2013

    @stefan-niedermann
    Author

    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 ;-) )

  15. stefan-niedermann commented on Jan 23, 2014

    @stefan-niedermann
    Author

    Is the upgrade from 6.0.0a to 6.0.1 also affected?

  16. PVince81 commented on Jan 23, 2014

    @PVince81
    Contributor

    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 ?

  17. PVince81 commented on Jan 23, 2014

    @PVince81
    Contributor

    @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 😦

  18. stefan-niedermann commented on Jan 23, 2014

    @stefan-niedermann
    Author

    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...

  19. PVince81 commented on Jan 23, 2014

    @PVince81
    Contributor

    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.

  20. vgezer commented on Apr 5, 2014

    @vgezer
    Contributor

    I think this is not reproducible anymore.

  21. stefan-niedermann commented on Apr 5, 2014

    @stefan-niedermann
    Author

    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.

  22. karlitschek commented on Dec 5, 2014

    @karlitschek
    Contributor

    Can´t be produced. Probably triggered by some old chaset problems in older ownCloud version. I assume this is fixed. If not please reopen

  23. chrisnew commented on Dec 5, 2014

    @chrisnew

    For the record: I once had troubles using LANG=en_DE. Now I'm using en_US and now it's working properly.

  24. locked as resolved and limited conversation to collaborators on Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions