Created
April 6, 2019 22:13
-
-
Save sagax/e2449bc5e98ef0922ffe277bf3bdf416 to your computer and use it in GitHub Desktop.
encode decode url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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