Character Encoding in Servlet
Hello,
I have a interesting problem with servlets. Apparently first I want to ask if it is possible to use Turkish Characters in servlet files? (like ı,i,ğ,?#351;,? I used these characters in servet. When I compiled and run the file in netbeans, 'ğ' character doesn't show up in browser, instead, I see a question mark. I set my browsers encoding utf-8. After compiling, netbeans changes the 'ğ' characters to question marks in code. I don't know how to solve this problem. it would be great if someone help me. Here is the piece of code I used in servlet.
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
request.setCharacterEncoding("UTF-8");
PrintWriter writer = response.getWriter();
writer.print("珑?#287;ğşiş鲻 - test string");
}

