Re: libidn2 extension for php
| From: | Gustavo Lopes | Date: | Fri, 18 Nov 2011 10:19:13 +0000 |
| Subject: | Re: libidn2 extension for php | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8881@lists.php.net to get a copy of this message | ||
Em Fri, 18 Nov 2011 09:13:27 -0000, Sven Kowalski <sk01@planet-ic.de> escreveu:
thanks for that tutorial. I got the compiling process working now. I've now the intl with ICU 4.8.1.1. But the result is still the same. fußball still becomes fussball. I expect that fußball becomes xn--fuball-cta. So intl is still not usable for me. Because the IDNA 2008 standard is now supported with ICU 4.8.1.1.Yes, it would appear the extension needs some changes. We're using the IDNA 2003 API exclusively. See http://icu-project.org/apiref/icu4c/uidna_8h.html Possibly the best course of action would be to follow the ICU API and create a new class in the intl extension with labelToASCII (uidna_labelToASCII_UTF8), labelToUnicode (uidna_labelToUnicodeUTF8), nameToASCII (uidna_nameToASCII_UTF8) and nameToUnicode (uidna_nameToUnicodeUTF8). However, I don't know receptive people are to add such a change to PHP 5..4 at this point. Another option would be to do it in trunk exclusively and sync PECL intl with it. -- Gustavo Lopes