International PHP Conference Munich 2025

Voting

: min(eight, six)?
(Example: nine)

The Note You're Voting On

David Hull
18 years ago
As an alternative to Johannes's suggestion for converting strings from other character sets to a 7bit representation while not just deleting latin diacritics, you might try this:

<?php
$text
= iconv($from_enc, 'US-ASCII//TRANSLIT', $text);
?>

The only disadvantage is that it does not convert "ä" to "ae", but it handles punctuation and other special characters better.
--
David

<< Back to user notes page

To Top