• Resolved sirtheta

    (@sirtheta)


    I have exactly the same problem as described here:

    https://www.ads-software.com/support/topic/fehler-beim-versenden-mit-emojis/

    When I run the test, everything is fine. What is the solution to this problem?

    Edit:
    I have just noticed that the test does only create one test entry, one without emoji. Is that normal?

    Edit2:
    I just debuged some more and came up with the solution to change the coallition in phpMyAdmin for the gwolle_gb_entries table to <dfn title=”Unicode (UCA 4.0.0), Beachtet nicht Gro?- und Kleinschreibung”>utf8mb4_unicode_ci</dfn>. It was utf8mb3…
    Now when I run the test in debuging of the plugin, two guestbook entries are created. One with emoji and one without. I guess you have to fix the tests and you should also look into why the table is created in utf8mb3 instead of utf8mb4. My WordPress language is german (de-DE)

    • This topic was modified 1 year, 2 months ago by sirtheta.
    • This topic was modified 1 year, 2 months ago by sirtheta.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • This emoji problem appears to be occurring to other users and sites: https://github.com/WordPress/gutenberg/issues/19552

    PS: Following these instructions solved the issue for me: https://stackoverflow.com/questions/6115612/how-to-convert-an-entire-mysql-database-characterset-and-collation-to-utf-8
    
    I didn't have sufficient privileges to just run a SQL command in phpMyAdmin, so I did a modified version of what is given there.
    
    I logged into my server via the shell, then generated a list of tables with this:
    
    mysql -e "show full tables where Table_Type = 'BASE TABLE'"
    
    Then I converted that output to a .sql file (which I named "change_charset.sql") where each table gets a line like this:
    
    ALTER TABLE ReplaceWithTableName CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
    
    At the very top of that file put this line:
    
    ALTER DATABASE DATABASENAME CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    
    Then I uploaded that change_charset.sql file to my server and figured out its path, then executed this command:
    
    mysql -u awww -pPASSWORD -h HOST -P PORTNUMBER DATABASENAME < /sites/user/change_charset.sql
    
    If you are going to follow my steps, replace PASSWORD, HOST, PORTNUMBER (if needed; if not needed, remove "-P PORTNUMBER"), and DATABASENAME in the above MySQL command with the equivalents for your own server. You can find these in your wp-config.php file in your root HTTP/web directory.

    Sorry, that’s ugly.

    I solved the problem and have pasted the solution here: https://github.com/WordPress/gutenberg/issues/19552#issuecomment-1758798993

    This is where I derived my answer: https://stackoverflow.com/questions/6115612/how-to-convert-an-entire-mysql-database-characterset-and-collation-to-utf-8

    • This reply was modified 1 year, 1 month ago by grantbarrett.
    Thread Starter sirtheta

    (@sirtheta)

    thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem when saving with emoji’ is closed to new replies.