-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed as not planned
Description
Description
The following code:
<?php
$string = 'Relámpago';
echo iconv('UTF-8', 'ASCII//TRANSLIT', $string)."\n";
Resulted in this output:
Rel'ampago
But I expected this output instead:
Relampago
Running iconv via CLI, the value is properly converted.
iconv -f 'UTF-8' -t 'ASCII//TRANSLIT' iconvinput.php
<?php
$string = 'Relampago';
echo iconv('UTF-8', 'ASCII//TRANSLIT', $string)."\n";
$ iconv -V
iconv (Ubuntu GLIBC 2.39-0ubuntu8.3) 2.39
PHP Version
PHP 8.3.4
Operating System
Ubuntu 24.04 (Docker container webdevops/php-apache-dev
)