Do you know that? 30% freelancers stated that they work with clients for two years or longer next

How do I provide internationalized AJAX interactions?

To provide internationalized AJAX components you need to do the following:

  •  Set the charset of a page to an encoding which is provided by the target languages. The following meta declaration in your HTML/JSP page is used to set the content type:
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
  •  In the page JavaScript ensure that the encoding of any parameters sent to the server is done. To achieve this JavaScript has the escape() function which will give Unicode escape strings containing localized text in hexadecimal format. 
  •  In the server side component set the character encoding using the HttpServletRequest.setCharacterEncoding() method. Before accessing the localized parameter with HttpServletRequest.getParameter() call. In the case of UTF this will be request.setCharactherEncoding("UTF-8");. 
  •  A server-side component returning AJAX responses requires to set the encoding of the response to the similar encoding used in the page. 
  response.getWriter().write(" <response>Not valid </response>");