LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

http get messy chinese characters

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>

0 Kudos
Message 1 of 9
(3,674 Views)

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...

0 Kudos
Message 2 of 9
(3,632 Views)

What's so messy about them?  They actually look quite neat and well-rendered.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 9
(3,623 Views)

@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.

0 Kudos
Message 4 of 9
(3,614 Views)

Which VI is useful?Is there a original solution?

Now Web is popular and Labview should hand better.

0 Kudos
Message 5 of 9
(3,581 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 9
(3,566 Views)

Fortunately LabVIEW NXG supports Unicode and stores strings internally in UTF-8.

Message 7 of 9
(3,532 Views)

@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.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 9
(3,528 Views)

How to deal with it in traditional Labview 2015 though?

 

0 Kudos
Message 9 of 9
(3,522 Views)