Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# See http://tools.ietf.org/html/rfc3986 §2.4 and §2.5
|
||||
proc urlEncode {str} {
|
||||
set uStr [encoding convertto utf-8 $str]
|
||||
set chRE {[^-A-Za-z0-9._~\n]}; # Newline is special case!
|
||||
set chRE {[^-A-Za-z0-9._~\n]}; # Newline is special case!
|
||||
set replacement {%[format "%02X" [scan "\\\0" "%c"]]}
|
||||
return [string map {"\n" "%0A"} [subst [regsub -all $chRE $uStr $replacement]]]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue