A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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
Trying to print XML using a servlet
problem with Euro symbol
Foreign characters not preserved
JSP Page Encoding
Displaying Japanese characters in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014