Forums Register Login

Character Encoding in Servlet

+Pie Number of slices to send: Send
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,ğ,�ş,�,�) 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.

+Pie Number of slices to send: Send
You will need to use the native2ascii tool as part of your build process. From its documentation:


The Java compiler and other Java tools can only process files which contain Latin-1 and/or Unicode-encoded (\udddd notation) characters. native2ascii converts files which contain other character encodings into files containing Latin-1 and/or Unicode-encoded charaters.

 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1769 times.
Similar Threads
multiple language support in one XML
NetBeans 4.1 - encoding in Properties editor
Charset & encoding Problem
any hints for creating &/or using existing UNICODE convertor/processor?
UTF-8 font Support
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:12:18.