03-16-2018 12:51 AM
The reponse I get from a http request contains chinese characters,but cannot display correctly in HTTP.Get.vi
How to fix it?
I already tried to Set Headers before sending the request,but still doesn't work.
<?xml version="1.0" encoding="UTF-8"?>
<Resp><ret>绛惧悕涓嶉€氳繃.</ret></Resp>
03-16-2018 05:23 AM
The text is UTF-8, LabVIEW uses MBCS (multi byte character set). So you'd need to somehow convert the entire stream or at least the string.
See for instance this post (haven't used it myself): https://forums.ni.com/t5/LabVIEW/Will-unicode-be-supported-by-LabVIEW/m-p/225120/highlight/true#M124...
03-16-2018 07:16 AM - edited 03-16-2018 07:16 AM
What's so messy about them? They actually look quite neat and well-rendered.
03-16-2018 07:33 AM
@billko wrote:
What's so messy about them? They actually look quite neat and well-rendered.
How can you tell? He didn't show them.
03-17-2018 02:12 AM
Which VI is useful?Is there a original solution?
Now Web is popular and Labview should hand better.
03-17-2018 03:39 PM
Unicode has been a sore spot for many a LabVIEW developer. It seems like it will never become a supported feature. I know from experience that unless you are very careful with the undocumented Unicode features, you can really screw things up, and not only in the project that is using it, either! That's probably why it will never be supported.
03-19-2018 09:10 AM
Fortunately LabVIEW NXG supports Unicode and stores strings internally in UTF-8.
03-19-2018 09:26 AM
@arteitle wrote:
Fortunately LabVIEW NXG supports Unicode and stores strings internally in UTF-8.
That's good to know! I guess now is the time to fix those things while NXG is still in its infancy. 🙂
03-19-2018 10:30 AM
How to deal with it in traditional Labview 2015 though?