I have a problem with JS encoding and then with extension on C # server. I use the javascript encode () function, but when I have special characters like +, C # has httputility.urldecode () → and it converts it as if it were a SPACE char.
What is the best way to transmit JS encoding and decoding C #?
I have <a href='javascript:foo(escape('hello +'))' />
function foo(data)
{
$.ajax({ url: "http:/....." + data, dataType: 'html', context: document.body
...
...
}
I debugged the server and I get "hello ++" - it does not know what + is (space or +), Thanks!
source
share