Chinese character are getting corrupted while using DFHJS2LS

Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

Chinese character are getting corrupted while using DFHJS2LS

Postby hariharan_bk » Tue May 05, 2020 10:57 pm

Hi All,

We have developed a webservice having CICS as the HTTP SERVER.
This Webservice takes the input JSON (which has both English and Chinese characters) and this JSON will be converted to MF copybook. This copybook data is then stored in the DB.

We are using this proc - DFHJS2LS to enable webservices in Mainframe.
In this Proc, we have these parameters to handle the unicode.

The issue what we face now s on the chinese characters. The chinese characters which we pass in JSON are not getting converted properly and they are getting corrupted.

DB values which are getting stored is also corrupted.

For example, if we pass this in request (Harry市), this is what we get as response (Harry市).

sample DB value shared for your reference:

DB value stored = ‬‎DAVE34å
hex value of DB value:


Expected value = DAVE34市
hex value of expected value:


Your inputs are much appreciated in addressing this DBCS/unicode/chinese character issue.
Many Thanks,
Posts: 73
Joined: Thu Mar 29, 2012 11:13 am
Has thanked: 5 times
Been thanked: 0 time

Re: Chinese character are getting corrupted while using DFHJ

Postby enrico-sorichetti » Tue May 05, 2020 11:07 pm ... highlight=
do not double post, the people answering here are the same answering there

topic locked

will deleted tomorrow
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Return to CICS