URL encoding: Difference between revisions

Line 564:
=={{header|langur}}==
{{works with|langur|0.6.8}}
 
The following should work with non-ASCII characters as well, with the s2b() function returning UTF-8 bytes from a string, and foldfrom() adding them all. The :X2 is an interpolation modifier, generating a hexadecimal code of at least 2 digits, padded with zeroes.
 
The third argument to replace() is a function that receives and processes matches to do the replacements with.
 
<lang langur>val .urlEncode = f(.s) replace(
890

edits