I am on Windows. Using tomcat 8. IDE - Netbeans 8. JDK1.8.0_05
I am trying to specify a Jewish url pattern for specific servlets. (I tried setting the Urlpatternannotation parameter @webservletand putting it in a file web.xml).
Jewish mapping does not work. I check what the mappings look like while Tomcat is running (using the MBeans tab in the JConsole), and the Hebrew url is displayed as gibberish (in particular, question marks).
I tried:
- Adding -J-Dfile.encoding = UTF-8 to the netbeans.conf file.
- Change Windows locales to Hebrew.
- Using the URLEncoded version of url in the template (this also appears as gibberish symbol in JConsole).
- I also tried to enter the URL into my encoded form in the address bar (for example: localhost: 8080 / test /% D7% A2% D7% 91).
- I checked the encoding of the servlet files in notepad, they are saved as UTF-8 (after making the first change described in this list).
- I have a filter on all url samples (for example: "/ *") that sets the request character encoding to UTF-8 (Apache also tried
SetCharacterEncodingFilter)
Any suggestions on how I can map the Jewish (UTF-8) url to tomcat, netbeans, java, windows setup?
Thank.
source
share