You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Emmanuel Bourg <eb...@apache.org> on 2009/08/07 19:27:27 UTC

Re: [all] files encoding (was Re: [VOTE] Release Commons-Net 1.5.0-RC4)

Luc Maisonobe a écrit :

> Could we change the default for *all* types of text files including java
> source files to UTF-8 ?

+1, but does it really matter in Commons where the source files are in 
english anyway?

Emmanuel Bourg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [all] files encoding (was Re: [VOTE] Release Commons-Net 1.5.0-RC4)

Posted by Cyril Briquet <cy...@canopeer.org>.
>
> >> Could we change the default for *all* types of text files including java
> >> source files to UTF-8 ?
>

+1

Also in [math] it would be interesting to use some symbols and some
> greek characters in javadoc and have them both readable when editing the
> file and converted automatically into html whene generating javadoc. For
> now, we use the html 4.0 entities for that and it is barely readable. As
> an example, compare the following source and generated javadoc.


+1

Apparently, the generated Javadoc is encoded by default with yet another
legacy charset:

<!-- Generated by javadoc (build 1.6.0_13) on Sun Aug 02 15:34:31 EDT 2009 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">


Useful flags to enable the use of UTF-8 math/greek sympbols in the [math]
Javadoc are described here:

http://java.sun.com/javase/6/docs/technotes/tools/windows/javadoc.html#charset


Cyril Briquet

Re: [all] files encoding (was Re: [VOTE] Release Commons-Net 1.5.0-RC4)

Posted by Luc Maisonobe <Lu...@free.fr>.
Emmanuel Bourg a écrit :
> Luc Maisonobe a écrit :
> 
>> Could we change the default for *all* types of text files including java
>> source files to UTF-8 ?
> 
> +1, but does it really matter in Commons where the source files are in
> english anyway?

This one is not in english and the unicode escapes are used in the
literal strings:
http://commons.apache.org/math/xref/org/apache/commons/math/MessagesResources_fr.html

Also in [math] it would be interesting to use some symbols and some
greek characters in javadoc and have them both readable when editing the
file and converted automatically into html whene generating javadoc. For
now, we use the html 4.0 entities for that and it is barely readable. As
an example, compare the following source and generated javadoc.

http://commons.apache.org/math/xref/org/apache/commons/math/optimization/fitting/HarmonicCoefficientsGuesser.html
http://commons.apache.org/math/api-2.0/org/apache/commons/math/optimization/fitting/HarmonicCoefficientsGuesser.html

Luc

> 
> Emmanuel Bourg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org