Sean

The trick is to url encode the bit that contains the accented characters. In 
your case, try:
('https://en.wiktionary.org/wiki/','prêt#French' urlEncoded ) asUrl

If you use urlEncoded on the whole string, the encoded slashes seem to confuse 
things.

HTH

Peter Kenny


-----Original Message-----
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of 
Sean P. DeNigris
Sent: 07 December 2017 14:49
To: pharo-users@lists.pharo.org
Subject: [Pharo-users] ZnUrls with Non-ASCII characters

'https://en.wiktionary.org/wiki/prêt#French' asUrl ==>
ZnCharacterEncodingError: ASCII character expected. Ideas?



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html


Reply via email to