wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes how to handle different charset with ProcessBuilder? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "how to handle different charset with ProcessBuilder?" Watch "how to handle different charset with ProcessBuilder?" New topic
Author

how to handle different charset with ProcessBuilder?

Vijay Gholap
Greenhorn

Joined: Sep 18, 2009
Posts: 2
I am trying to execute the a command using process builder. But that command is having some Japanese Character. So it is executing the command but result is not as expected.

command i tried : 1) echo 拝見 マイクロエレクトロニクス 2) mkdir "d:\test\拝見 マイクロエレクトロニクス"
OS: XP SP2

result: some chunk char are getting displayed.


See here a sample code which i tried ...



Rajiv Arora
Greenhorn

Joined: Mar 25, 2007
Posts: 26
I am also facing a similar issue, so could anyone help here?

Thanks!
Yegor Bugayenko
Ranch Hand

Joined: Feb 11, 2011
Posts: 77
I re-posted this question to Stackoverflow: http://stackoverflow.com/questions/24802042/how-to-handle-encoding-inside-processbuilder-commands


SCEA, PMP, read my blog: www.yegor256.com
 
Consider Paul's rocket mass heater.
 
subject: how to handle different charset with ProcessBuilder?