Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

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>");

Do you know that?

37% - I began freelancing to earn supplemental income Next


Getting payments for Freelancers
1. Read how to register and get earned money

2. Open account within 5 minPayoneer sing up to get free $25