The question is simple: Is there a Unicode stringprep implementation available for use in PHP applications?
PHP 5.3 comes with some IDN support but it can only convert between UTF-8 and Punycode. GNU libidn says something abou开发者_StackOverflowt stringprep, but there's nothing but unfinished and abandoned libidn bindings for PHP. I'm looking for a solution that either comes with PHP and is widely available or that is implemented in PHP so that I can include it in my application.
PECL IDN doesn't finished or abandoned, however if you need an alternative solution
try the PHP IDNA ext: http://www.xarg.org/project/php-idna/
精彩评论