[php-src] Issue #10019: iconv error when using "ß"
| From: | skeutmeier | Date: | Tue, 29 Nov 2022 13:30:36 +0000 |
| Subject: | [php-src] Issue #10019: iconv error when using "ß" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242977@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10019
Author: skeutmeier
### Description
The following code:
```php
<?php
$text = iconv('UTF-8', 'ASCII//TRANSLIT', 'ß');
var_dump($text);
```
Resulted in this output:
```
PHP Notice: iconv(): Detected an illegal character in input string in /home/sebastian/inconv.php on
line 2
bool(false)
```
But I expected this output instead:
```
string(2) "ss"
```
This is working correctly in PHP 8.1.12 but not in 8.1.13
### PHP Version
PHP 8.1.13
### Operating System
Ubuntu 20.04