linux - Convert String from AS400 to Java -
to communicate as400
use java web service jt400
library, web service running under linux. text result after calling as400 program contains accented character é à è
… in xhtml
page text isn't displayed correctly, example é
replaced {
.
the as400
configured this: ccsid : 65535
, encoding : 297
. when same web service run under windows, can display correctly accented characters thank help.
you seem have ran in mojibake caused interpreting bytes of text in incorrect encoding. mention é
being replaced {
; code point é
in ccsid 297 0xc0
in ccsid 37 {
, makes sense.
i'm not sure data coming from, if you're using as400text convert data in java string object, you'll need specify correct ccsid or pick ccsid based on current locale. can either specify ccsid as400.getccsid or associated encoding string value as400.getjobccsidencoding.
Comments
Post a Comment