>Maybe I did not understand, is this what you want?
>
>string x = "I'm a girl";
>x = Server.UrlEncode(x).Replace("'", "\\'"));
>
>returns: "I\'m+a+girl"
>
>Craig is correct, you need to escape the backslash in C#.
Thanks everyone. This particular problem that was bugging me for the few last days seems to be solved.
Now I have to solve the real problem with the "fck editor".
If it's not broken, fix it until it is.
My Blog