Hi,
I am developing an application that accepts Japanese characters from an ND page to
save into a database. Basically when I used the ND button wizard to specify
that
the ND textbox (that accepts the japanese character) value be passed to
another ND
textbox on the same page when the button is clicked, I can see that 2nd
textbox contains
the Japanese Characters. Now in my OnWebEvent code for the ND button I need
to convert
the string to a SJIS (Shift Japanese International Standard) character
encoded byte
array. So I code something like :
CSpValue v = getDisplayFieldValue("myText");
String s = v.stringValue();
byte[] b = s.getBytes("SJIS");
CSpHtml.write("Japanese string = " + s); //to check
However I cannot get the correct hex value for the byte array for the Japanese
characters
I enter (I check using a function to convert byte to hex). Nor did the
CSpHtml.write
display the correct Japanese String. This is very strange given that the
second textbox
contains the correct Japanese characters that I enter in the 1st textbox.
I would appreciate it if anyone can provide some clues or help as to what is happening
here. Thank you in advance for your attention.
Regards
Tan Wee
Fedex
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]