Forum Discussion

Mack_Hanson_107's avatar
Mack_Hanson_107
Icon for Nimbostratus rankNimbostratus
Aug 21, 2007

URLEncode / URLDecode

Is there a function I can use to URLencode a string, and URLdecode a string?

At the moment I'm doing a series of string maps, but I wonder if there is a better way.

ex.

set newstring [string map {%3D =} $string_that_is_urlencoded ]