Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

JSON parsing and composing library:

3 hours ago
  • damian177

    damian177 - 2022-01-27

    I have a problem.
    I get data from http get request in JSON format. When I use http_sys.hTTPClient_0.httpResult.wsContent (WSTRING) everything with chars (UTF-8) is ok. But for the needs JSON Parse I must use http_sys.hTTPClient_0.httpResult.sContent (STRING) data and in this case I have problem with Polish letters.
    After parse I create variables to print on HMI(webvisu):
    description:= STRING_TO_WSTRING(NewJSONObj.description.AsString);

    And the result is that I have no polisch letters. How resolve this problem ?

    Talk Topic about project #pro-json


Log in to post a comment.