I have made a tcl that enters user information into mysql. But I have a problem when the nick has a \ in it. Mysql requires the value to be set to \\.
Code: Select all
set $nick "ad\am"
## Nick need to be "ad\\am" to go into mysql
Adam
Code: Select all
set $nick "ad\am"
## Nick need to be "ad\\am" to go into mysql
Code: Select all
set nick [string map {\\ \\\\ \[ \\\[ \] \\\] \( \\\( \) \\\) \{ \\\{ \} \\\} \" \\\"} $nick]