Re: java encoding charset suggestion

2013-03-18 Thread Helio Frota
Hi Martin, Is not interesting to favor one country or language. I read some documents including the link you shared ( opengroup ). Only one thing i found is the python language that try to found defined values on others variables. http://docs.python.org/2/library/locale.html But after absorbing

Re: java encoding charset suggestion

2013-03-18 Thread Martin Buchholz
On Mon, Mar 18, 2013 at 11:34 AM, Helio Frota wrote: > > Please try to use á é í ... > > But I think the operating system should set the default, not the >> application. On my Ubuntu system I see the traditional ASCII English >> default: >> > > I agree, but the JVM could not be pro-active ? Ho

Re: java encoding charset suggestion

2013-03-18 Thread Louis Wasserman
This would probably be likely to break lots of existing users depending on the default charset, depressingly enough. On Mon, Mar 18, 2013 at 11:34 AM, Helio Frota wrote: > Hi Martin Buchholz, > > I believe (but I could be wrong) that only java applications exhibit this > behavior, programs made

Re: java encoding charset suggestion

2013-03-18 Thread Helio Frota
Hi Martin Buchholz, I believe (but I could be wrong) that only java applications exhibit this behavior, programs made with GTK or QT are not affected, they probably look at the level of the X11 case are not in variable LANG or assume a default locale. > $ (unset LC_ALL LC_COLLATE LANG LANGUAGE

Re: java encoding charset suggestion

2013-03-18 Thread Martin Buchholz
It *would* be nice if the world agreed on using UTF-8 as a universal encoding for all text. However: Standard says http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html """If the LANG environment variable is not set or is set to the empty string, the implementation-defined defa

java encoding charset suggestion

2013-03-18 Thread Helio Frota
Hi All, Sorry if here is not the right place to do a suggestion of this subject. Please take a look on this post: http://www.heliofrota.com/blog/2013/03/18/understanding-java-encoding/ I would suggest taking en_US.UTF-8 as default when the LANG variable is not set to avoid problems with encoding