Skip to content

Instantly share code, notes, and snippets.

@sagax
Created April 6, 2019 22:13
Show Gist options
  • Save sagax/e2449bc5e98ef0922ffe277bf3bdf416 to your computer and use it in GitHub Desktop.
Save sagax/e2449bc5e98ef0922ffe277bf3bdf416 to your computer and use it in GitHub Desktop.
encode decode url
package require ncgi
set line "ссылка"
puts "SRC: $line"
set encoded [ncgi::encode [encoding convertto utf-8 $line]]
puts "ENCODED: $encoded"
set decoded [ncgi::decode $encoded]
puts "DECODE $decoded"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment