[jQuery] jQuery AJAX Java Servlet encoding problem
Hi All,
I have a strange problem using jQuery with Java Servlet pages.
I want to edit, insert delete some entry for myself in a java project using jQuery and Java Servlet. Everything is written in utf8, but when I call an ajax function in jQuery the posted request gets the value as converted UTF8 chracters to ASCII. Did or does anybody use(d) jQuery with Java Servlet?
$('#'+TabHandler.actualTab).load(
contextPath+"/commentupdatenote?txtnote="+$('#txtnote').attr("value"),
"",
function(){TabHandler.showFlash("Content Updated!");}
);
- the #txtnote point to a textarea where the text content to be found
- all the content, for this comment part of the page, has ben added after the page has been loaded
- in many cases we use character by writing our comments like éáöü and so on, this characters are the problems
- example value in java I get is "Good comments, bad comment éáé" (debug mode)
I need help, because I am frustrated about this
thx forwardly
Sanyi
Ps.: As I know the xHttpRequest send everything in utf8, Am i right?
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/