Hi!
So, what is my situation:
I receive utf-8 json data from a webservice via HTTPAPI. So far, the utf-8 data is stored in a variable in my RPGLE program. One way is to convert the data to EBSDIC via iConv....the converted data in this variable can be parsed with YAJL via yajl_buf_load_tree.
Evarything works fine so far.
But now, i have the requirement, that i need to parse the raw utf-8 data to get i.e. the name of a city in utf-8 - this information i have to store in my utf-8 DB2 table.
When i try to parse the variable with utf-8 data via yajl_buf_load_tree i get an error (invalid characters).
So, is there a proper way to do this - have anyone an idea?
So, what is my situation:
I receive utf-8 json data from a webservice via HTTPAPI. So far, the utf-8 data is stored in a variable in my RPGLE program. One way is to convert the data to EBSDIC via iConv....the converted data in this variable can be parsed with YAJL via yajl_buf_load_tree.
Evarything works fine so far.
But now, i have the requirement, that i need to parse the raw utf-8 data to get i.e. the name of a city in utf-8 - this information i have to store in my utf-8 DB2 table.
When i try to parse the variable with utf-8 data via yajl_buf_load_tree i get an error (invalid characters).
So, is there a proper way to do this - have anyone an idea?
Comment