Benedikt Rothe wrote:
Hi
The C-Wrapper "mapscript_wrap.c" converts Java-Strings to
"char*" with the JNI-Function "GetStringUTFChars".
This UTF-8-byte-sequence is passed to the mapserver-kernel.
But mapserver-kernel expects an one-byte-encoding. (ISO-8859-1 or CP437
(!?))
I wrote a JNI-sample-program to illustrate.
The sample-program converts to UTF-8, ISO-8859-1 and CP437.
On my Windows-Command-Prompt the CP437-result was correct.
I think mapscript_wrap.c has to do more than UTF-8-Conversion.
Benedikt
Hi all,
is there a way to do the converion in java dircetly?
Thanks in advance
Norbert