Friday, August 16, 2013


Punycode in Pharo

When working with internationalized domain names you may know the "Punycode" encoding (RFC 3492). There is a new project dealing with this on SmalltalkHub.

 You can read more about this on Wikipedia and try the example from the article (using the german word "Bücher" which means books):

PunycodeConverter new encode: 'Bücher' results in 'xn--Bcher-kva' 

PunycodeConverter new decode: 'xn--Bcher-kva' results in 'Bücher' again

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?