Convert non-ASCII (german, french ...) to ASCII (english) with PHP (iconv)

Submitted by Gast (nicht überprüft) on Di, 06/07/2022 - 19:57

Filename Sanitizer / Normalizer : 

<?php

$str = "Text mit Ä Ö Ü ß é á ú î é ú í ó á ý ";
echo iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str);

// Text mit A O U ss e a u i e u i o a y 

?>

 

Neuen Kommentar schreiben

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.