[php-src] Issue #8744: PHP8.1: mb_convert_encoding not working with ASCII chars above 127
| From: | felixwatzka | Date: | Fri, 10 Jun 2022 08:58:25 +0000 |
| Subject: | [php-src] Issue #8744: PHP8.1: mb_convert_encoding not working with ASCII chars above 127 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241702@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8744
Author: felixwatzka
### Description
The following code:
```php
<?php
echo mb_convert_encoding ( chr(252), 'UTF-8', 'ASCII' );
```
Resulted in this output:
```
?
```
But I expected this output instead:
```
ü
```
In fact, since PHP 8.1, not ASCII character above 127 will be converted correctly. You can try the
above example also here: https://3v4l.org/7ZASZ
### PHP Version
PHP 8.1.6
### Operating System
Ubuntu 22.04