Skip to content

PHP 8.0 ascii iconv problem #8580

Closed as not planned
Closed as not planned
@Csaba27

Description

@Csaba27

Description

The following code:

<?php

$text = "àèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸ";

var_dump(iconv("UTF-8", "ASCII//TRANSLIT//IGNORE", $text));

Output

	~ # php8.0 iconv.php
	string(50) "??????????????????????????????????????????????????"

	~ # php7.4 iconv.php
	string(50) "aeiouAEIOUaeiouyAEIOUYaeiouAEIOUanoANOaeiouyAEIOUY"

	~ # php8.1 iconv.php
	string(50) "aeiouAEIOUaeiouyAEIOUYaeiouAEIOUanoANOaeiouyAEIOUY"

PHP Version

PHP 8.0.x

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