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

}

[959 byte] By [revenadea] at [2007-11-27 3:29:54]
# 1
Ya, ofcourse you can use turkish characters, as java uses unicode, it supports most of the human languages...sudhir http://www.jyog.com
Sudhir_nimavata at 2007-7-12 8:32:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
May be this is a matter of application server. What kind of AS does Netbeans uses?
droumpa at 2007-7-12 8:32:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...