how to support chinese in script requst API?

DD Chengxin Wan
Tera Contributor

i taked a integration with other system and Servicenow.

 

i use request.body.datastring to get body content and then use JSON.parse() handl body content.

 

but if this body includs chinese words or chinese characters. system just show '?', not real Chinese characters.

 

May i use UTF-8 to fix it? and how to use UTF-8 when parse request.body in Script request API?

 

 

 

 

0 REPLIES 0