PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_IDNA » Bug #8387

Problem with encode Polish letters

Details

Submitted2006-08-08 12:36 UTC
Fromlandm at ibi dot pl
Assignedneufeind
StatusClosed
PackageNet_IDNA
PHP Version5.1.4
OSlinux
Roadmaps(Not assigned)

Comments

[2006-08-08 12:36 UTC] landm at ibi dot pl

Description:
------------
Problem with encode some Polish letters.

My php and pear packages:
php-pear-PEAR-core-1.4.6-3
php-pear-I18N-0.8.6-5
php-cli-5.1.4-5
php-mysql-5.1.4-5
php-xml-5.1.4-5
php-ldap-5.1.4-5
php-gtk-1.0.0-0.1
php-pear-PEAR-1.4.6-3
php-gettext-5.1.4-5
php-pear-XML_RPC-1.4.8-1
php-pear-Net_Cyrus-0.3.1-4
php-pear-Net_IMAP-tests-1.0.3-3
php-pear-Console_Getopt-1.2-4
php-pear-XML_Parser-1.2.7-3
php-pear-Net_IMAP-1.0.3-3
php-pear-Net_Sieve-tests-1.1.3-1
php-gd-5.1.4-5
php-imap-5.1.4-5
php-exif-5.1.4-5
php-mime_magic-5.1.4-5
php-pear-Archive_Tar-1.3.2-1
php-pear-1.0-13
php-pear-Tree-0.2.4-4
php-pear-Net_Socket-1.0.6-3
php-pear-Net_IDNA-0.7.1-2
php-pear-Net_Cyrus-tests-0.3.1-4
apache-mod_php-5.1.4-5
php-program-5.1.4-5
php-iconv-5.1.4-5
php-mbstring-5.1.4-5
php-zlib-5.1.4-5
php-dirs-1.0-2
php-pear-Net_Sieve-1.1.3-1
php-pear-Net_IDNA-tests-0.7.1-2
php-pear-DB-1.7.6-3
php-pear-Net_FTP-1.3.2-1
php-pear-File_PDF-0.0.2-3
php-common-5.1.4-5
php-pcre-5.1.4-5
php-cgi-5.1.4-5
php-ftp-5.1.4-5

Test script:
---------------
$UTF = $idn->decode('xn--od-wqa0u.pl');
$ACE = $idn->encode($UTF);
echo $UTF." != ".$ACE;

Expected result:
----------------
$ACE = xn--od-wqa0u.pl

Actual result:
--------------
$ACE = Bodz.pl

[2006-08-08 18:20 UTC] landm at ibi dot pl

Test script should be:
---------------
$ACE_ORG = 'xn--od-wqa0u.pl'
$UTF = $idn->decode($ACE_ORG);
$ACE = $idn->encode($UTF);
echo $ACE_ORG." != ".$ACE;