java - UTF-8 encoding garbled using eclipse, spring, tomcat 7 on mac -
edit: please ignore question below now. seems working now. perhaps cached in browser, once fixed, still wasn't displaying right. seems ok in both chrome , firefox, i'll assume it's ok now. thanks..
i writing java web application using eclipse, spring , tomcat 7. servlet returns html, including javascript file follows:
<script type="text/javascript" charset="utf-8" src='loc/loc_de.js'></script>
when @ file loc_de.js in eclipse, german characters display fine. when load js file through firefox , view->character encoding, firefox says encoded in utf-8. i've set workspace default in eclipse utf-8. i've changed tomcat web.xml, adding following default servlet servers static resources:
<init-param> <param-name>fileencoding</param-name> <param-value>utf-8</param-value> </init-param>
and yet german accented characters come out weirdly garbled.. grateful if can tell me else need doing.. thanks!
edit: please ignore question below now. seems working now. perhaps cached in browser, once fixed, still wasn't displaying right. seems ok in both chrome , firefox, i'll assume it's ok now. thanks.. i writing java web application using eclipse, spring , tomcat 7. servlet returns html, including javascript file follows: when @ file loc_de.js in eclipse, german characters display fine. when load js file through firefox , view->character encoding, firefox says encoded in utf-8. i've set workspace default in eclipse utf-8. i've changed tomcat web.xml, adding following default servlet servers static resources: and yet german accented characters come out weirdly garbled.. grateful if can tell me else need doing.. thanks! | |||||||||
|