Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8328 > unrolled thread
| Started by | ilya <bumsys@gmail.com> |
|---|---|
| First post | 2011-09-26 05:40 -0700 |
| Last post | 2011-09-26 11:25 -0700 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
Runtime.getRuntime.exec + Czech windows ilya <bumsys@gmail.com> - 2011-09-26 05:40 -0700
Re: Runtime.getRuntime.exec + Czech windows markspace <-@.> - 2011-09-26 08:02 -0700
Re: Runtime.getRuntime.exec + Czech windows Lew <lewbloch@gmail.com> - 2011-09-26 10:33 -0700
Re: Runtime.getRuntime.exec + Czech windows Roedy Green <see_website@mindprod.com.invalid> - 2011-09-26 11:25 -0700
| From | ilya <bumsys@gmail.com> |
|---|---|
| Date | 2011-09-26 05:40 -0700 |
| Subject | Runtime.getRuntime.exec + Czech windows |
| Message-ID | <d8a11252-26f2-4cb9-aeca-4fe5991a8c3f@y18g2000yqy.googlegroups.com> |
I am working on Czech windows and have the problem with the executing the commands with Runtime.getRuntime().exec(). The special czech characters are changed during the executing the command. For example, the file c:\applications\commands\testí\run.bat will not be executed because the character " í " will be changed on some character or on ?. Is there the way to execute the command?
[toc] | [next] | [standalone]
| From | markspace <-@.> |
|---|---|
| Date | 2011-09-26 08:02 -0700 |
| Message-ID | <j5q46f$e1k$1@dont-email.me> |
| In reply to | #8328 |
On 9/26/2011 5:40 AM, ilya wrote: > I am working on Czech windows and have the problem with the executing > the commands with Runtime.getRuntime().exec(). The special czech > characters are changed during the executing the command. > > For example, the file c:\applications\commands\testí\run.bat will not > be executed because the character " í " will be changed on some > character or on ?. > > Is there the way to execute the command? <http://download.oracle.com/javase/6/docs/api/java/nio/charset/CharsetDecoder.html> What is the actual Unicode code point (the number) for the í character?
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2011-09-26 10:33 -0700 |
| Message-ID | <30859136.1347.1317058401962.JavaMail.geo-discussion-forums@prec11> |
| In reply to | #8332 |
markspace wrote: > ilya wrote: >> I am working on Czech windows and have the problem with the executing >> the commands with Runtime.getRuntime().exec(). The special czech >> characters are changed during the executing the command. >> >> For example, the file c:\applications\commands\testí\run.bat will not >> be executed because the character " í " will be changed on some >> character or on ?. >> >> Is there the way to execute the command? > <http://download.oracle.com/javase/6/docs/api/java/nio/charset/CharsetDecoder.html> > > What is the actual Unicode code point (the number) for the í character? Also, http://sscce.org/ ? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2011-09-26 11:25 -0700 |
| Message-ID | <8lg1879au936r14pf790muu4ino2dldag1@4ax.com> |
| In reply to | #8328 |
On Mon, 26 Sep 2011 05:40:43 -0700 (PDT), ilya <bumsys@gmail.com>
wrote, quoted or indirectly quoted someone who said :
>For example, the file c:\applications\commands\test=ED\run.bat will not
>be executed because the character " =ED " will be changed on some
>character or on ?.
If you wrote a program like this and execed it
public static void main ( String args[] )
{
for ( String arg: args )
{
out.println ( arg );
}
}
There are two places chars could potentially get scrambled -- coming
in on the command line and going out to the console. Consoles use
IBMOEM charset which is pretty well guaranteed to screw things up.
see http://mindprod.com/jgloss/encoding.html
A way to tackle this is to write a dummy program that you spawn. All
it does it dump out the chars from the command line in hex. That way
you can figure out where the chars are getting scrambled.
--
Roedy Green Canadian Mind Products
http://mindprod.com
It should not be considered an error when the user starts something
already started or stops something already stopped. This applies
to browsers, services, editors... It is inexcusable to
punish the user by requiring some elaborate sequence to atone,
e.g. open the task editor, find and kill some processes.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web