Re: weird warning about invalid UTF-8 characters in java comments ...

hussayn <[email protected]> Wed, 29 Oct 2008 15:49:25 -0700 (PDT)
Newsgroups gmane.comp.java.scarab.devel
Message-ID <[email protected]>


cwnet wrote:
> 
> I get the same with LANG=en_GB.UTF8 but ignored it due to being in
> comments. It is possible to set the source code character set for the
> java compiler - perhaps this is the solution to remove the warnings.
> 

What would happen, if somebody else would add yet another character set ?
UTF-8 here, ISO-LATIN there, chinese ....  It just can happen. But it can
not
be cured by setting compiler options.

The only simple solution i see, is to self restrict ourself to one
characterset in the java-sources.

Either we make it simple and stick to the ASCII characterset, which wirked
for ages,
or we make it a little bit more complex and stick with UTF-8 (IMHO the best
choice we have nowadays).

In the latter case we might also want to configure maven/ant compile steps
so that utf-8 is 
guaranteed to be used... 

I personally would opt for the simples solution (use ASCII)...

Any complains ?
-- 
View this message in context: http://www.nabble.com/weird-warning-about-invalid-UTF-8-characters-in-java-comments-...-tp20235612p20237497.html
Sent from the Scarab - Dev mailing list archive at Nabble.com.