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
It is sorta covered in the
JavaRanch Style Guide
subject: Best practise for setting character encoding
Foreign characters not preserved
Trying to print XML using a servlet
Displaying Japanese characters in JSP
JSP Page Encoding
problem with Euro symbol
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013