defining utf-8 encodage when posting data
Hi all, I'm using the post function to send data. the problem is when I'm sending the data with special characters like é à ù è ..... the server display this characters é à è ù
Does anyone know how i can specify the encodage *. My server side is a tomcat and the page which processing the data is a jsp.
My jQuery code :
$.post(
'addAnnotation.jsp',
{ note: note},
function(data){
alert('ok');
});//end function
My jsp code :
<%@ page language="java" contentType="text/html; charset=ISO-8859-15" pageEncoding="ISO-8859-15" %>
<%@ page import="java.util.*" %>
<%
String note = request.getParameter("note");
System.out.println("--------- note = " +note); this line display : é à è ù instaed é à è ù
%>