A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Best practise for setting character encoding
Joined: May 12, 2010
Sep 08, 2010 03:03:59
We always want UTF-8.
Is it better to set this as a system property passed to the JVM e.g.
Or is it better to set it programmatically:
Eduardo Yañez Parareda
Joined: Oct 09, 2008
Sep 08, 2010 03:07:30
It depends on your enviroment, I prefer to have it in a configuration file, then set it programmatically. That way you don't depend on Server Applications Admins, and it isn't hardcoded.
- Simplest Ever REST Framework for Java
I agree. Here's the link:
subject: Best practise for setting character encoding
Displaying Japanese characters in JSP
JSP Page Encoding
Foreign characters not preserved
problem with Euro symbol
Trying to print XML using a servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014