Last active
February 28, 2020 17:17
-
-
Save rcerrejon/8730370 to your computer and use it in GitHub Desktop.
Database replace bad characters to german (umlaut) characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Database replace bad characters to german characters (SQL)*/ | |
/*replace "pages" with yout table and "title" with your field*/ | |
UPDATE pages SET title=replace(title,'ß', 'ß'), title=replace(title, 'ä', 'ä'), title=replace(title, 'ü', 'ü'), title=replace(title, 'ö', 'ö'), title=replace(title, 'Ä', 'Ä'), title=replace(title, 'Ãœ', 'Ü'), title=replace(title, 'Ö', 'Ö'), title=replace(title, '€', '€'), title=replace(title, '–', '–'), title=replace(title, '“', '“'), title=replace(title, '„', '„'), title=replace(title, '§', '§'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment