For Programmers: Free Programming Magazines  


Home > Archive > Java Help > August 2007 > How to compile a java source with UTF-8 encoding in cmd?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to compile a java source with UTF-8 encoding in cmd?
Wei Wang

2007-08-23, 4:24 am

How to compile a java source with UTF-8 encoding in cmd? (The default
encoding of my OS is GBK, a Chinese encoding)
Thank you

Thomas Fritsch

2007-08-23, 4:24 am

Wei Wang wrote:
> How to compile a java source with UTF-8 encoding in cmd? (The default
> encoding of my OS is GBK, a Chinese encoding)
> Thank you
>

It is described in the documentation of javac:
<http://java.sun.com/j2se/1.5.0/docs...ac.html#options>

--
Thomas
Roedy Green

2007-08-23, 4:24 am

On Wed, 22 Aug 2007 06:17:44 -0700, Wei Wang <dingweiwang@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>How to compile a java source with UTF-8 encoding in cmd? (The default
>encoding of my OS is GBK, a Chinese encoding)
>Thank you


see http://mindprod.com/jgloss/javacexe.html
http://mindprod.com/jgloss/encoding.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com