you could've done all that in one line...
value = m.replaceAll("\'", "\'\'");
Well, that's not the solution i suggest. I
guess you basically want to escape certain
special characters. If i'm not wrong, you would
have the same problem with even < and > symbols.
try this:
value = URLEncoder.encode(str, "UTF-8");
You don't have to decode this unless you are using this
in a javascript function. If so, use the unescape() function
of javascript.
________
Adarsh
|