SyntaxFix
Write A Post
Hire A Developer
Questions
You just need to escape characters that have special meaning: # $ % & ~ _ ^ \ { }
# $ % & ~ _ ^ \ { }
So
http://stack_overflow.com/~foo%20bar#link
would be
http://stack\_overflow.com/\~foo\%20bar\#link