Skip to content

iconv error when using "ß" #10019

@skeutmeier

Description

@skeutmeier

Description

The following code:

<?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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions