I would like to know how to change charset of echo() fanction . My environment is Win7 and charset of the console is Japanese SHIFT-JIS. So I need to change charset to show Japanese characters.
brianSat 13 Aug 2011
You should be able to configure it as follows:
Env.cur.out.charset = Charset("Shift-JIS")
motonaoTue 16 Aug 2011
Thanks for the reply. It works fine.
motonaoSun 4 Sep 2011
I would like to ask a little different question.
I can't get Japanese command line args in Windows .
motonao Sat 13 Aug 2011
I would like to know how to change charset of echo() fanction . My environment is Win7 and charset of the console is Japanese
SHIFT-JIS
. So I need to change charset to show Japanese characters.brian Sat 13 Aug 2011
You should be able to configure it as follows:
motonao Tue 16 Aug 2011
Thanks for the reply. It works fine.
motonao Sun 4 Sep 2011
I would like to ask a little different question.
I can't get Japanese command line args in Windows .
class MyTest {
}
>fan mytest.fan "<shift-jis-characters>"
args=??
It shows garbled or sometimes disappear, depends on characters. How can I get args ?
brian Sun 4 Sep 2011
Try using the Java command line without the fan.exe wrapper and see if that works:
motonao Mon 5 Sep 2011
Thanks for the answers. I made a .bat file and got command line arguments.