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

Copyright Witness Network Support <[email protected]> Wed, 29 Oct 2008 22:55:45 +0000
Newsgroups gmane.comp.java.scarab.devel
Organization Copyright Witness
Message-ID <[email protected]>
Hi,

Yeah. Good point. If maintenance of scarab is done in eclipse (or
similar) ensuring sources are in UTF-8 is not a problem regardless of
platform. However, if not then you are pretty much relying on good
nature to ensure the character set is maintained by the developer who
edits the file and the quality of the tools used. UTF8 really is the
only character set that is truly universal and will ensure the comments
and other strings are as intended - I personally opt for UTF-8 sources,
but ASCII is probably more compatible across UTF8 and cp1252 etc,
although I suspect ASCII would result in more of the same.

Regards,
Barry

hussayn wrote:
>
> 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 ?
>   

-- 
Sincerely Yours

Copyright Witness Net Support
[email protected]

www.copyrightwitness.com
Registration centre for copyright works.

This e-mail and any attachments are confidential and intended for the addressee only.
The information in this mail does not amount to legal advice or opinion. Any views or legal references are those of the author and are based on personal opinion or understanding only.