URL encoding: Difference between revisions

m
(→‎{{header|langur}}: using for loop value instead of foldfrom() function)
Line 565:
{{works with|langur|0.8.4}}
 
The following should work with non-ASCII characters as well (assuming that's valid), with the s2b() function returning UTF-8 bytes from a string, and foldfrom()the for loop adding them all. The :X02 is an interpolation modifier, generating a hexadecimal code of at least 2 characters, padded with zeroes.
 
The :X02 is an interpolation modifier, generating a hexadecimal code of at least 2 characters, padded with zeroes.
 
<lang langur>val .urlEncode = f(.s) replace(
890

edits