Connecting Tech Pros Worldwide Help | Site Map

Using Runtime.exec with CJKT parameters

Avnish Midha
Guest
 
Posts: n/a
#1: Jul 17 '05
Does the Runtime.exec() method support parameters from non-native
locales i.e. does it really support the entire unicode range of
characters in the parameters. I am trying ot invoke a C++ application
(exe) using the exec() method. The C++ application is unicode enabled
i.e. it can accept wide chars as command line arguments. I am passing
UTF-16 java String parameters to the Runtime.exec() function, but when
these parameters are checked in the C++ application, the CJKT
characters get replaced with '?' characters. Please note that this
application is being run on Windows 2K Server - default i.e. English
edition.

Looking at the source code of Runtime class, it seems that the exec()
function makes use of a native helper function - execInternal(). Does
this function support the entire unicode range?

Regards,
Avnish Midha
Closed Thread