Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Encoding/decoding Guangdong TLD #6

@renan

Description

@renan

As reported by mail:


Hello,

I have found a bug in your code https://github.com/true/php-punycode .

It can sucessfully decode xn--p1ai , but it cannot correctly decode the TLD xn--xhq521b . Did I do something wrong?

mb_internal_encoding('utf-8');
include __DIR . '/punycode.inc.php';
$punycoder = new True\Punycode();
$x = $punycoder->decode('xn--p1ai');
var_dump($x);
$x = $punycoder->decode('xn--xhq521b');
var_dump($x);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions