A small PHP class with a simple frontent for fixing broken umlauts such as ë
, ö
etc. It uses PHP str_replace()
for search and replace, so nothing fancy but does a good job for my personal needs.
The class uses replacements listed on https://www.i18nqa.com/debug/utf8-debug.html and https://bueltge.de/wp-content/download/wk/utf-8_kodierungen.pdf. So thanks to both authors for publishing such lists! But I did'nt implement all of them – just a personal selection I found usefull instead.
As always: Use with care an do your backups!
- Copy the umlaufixer directory to a PHP capable server (MAMP, XAMPP e.g.)
- Place the broken file, such as a sql dump, in the
input
directory - Point your browser to the URL of the umlautfixer folder
- A list of files in
input
directory should appear (see screenshot) - Select the one you wan't to fix, click the Fix it! button
- Check the
output
directory for the processed file
Note that the file(s) in input
directory arn't changed by the script, so this is your backup if things go nuts.