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
Hi,
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 ?
Hi,
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
For future reference, see the discussion here: https://forge.codesys.com/forge/talk/Engineering/thread/c7d3ad3156/