A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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
problem with Euro symbol
JSP Page Encoding
Trying to print XML using a servlet
Foreign characters not preserved
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013