Solved! Go to Solution.
More than two years have passed. Now I found the counterpart named "UTF-8 to Text" (by using VI-Scripting).
If anybody else wants to convert text to or from UTF8, the two functions are in the appended VI (saved for LabVIEW 8.0).
I was having an issue with an XML parser not seeing all of the nodes... Boiled down to a UTF-8 conversion error, which this VI took care of.
You're a genius!
I already spent some time on writing a simple UTF-8 encoder in LV (Didn't want to use the ugly win32 API via Call Library). It's obsolete now and I'm happy about that
These primitives should definitely be added to the standard palette.
Please suggest that on the LV idea exchange, I'd give a kudos to you instantaneously
These primitives are indeed very useful and would be an nice addition to the LV API, but we felt that they had been insufficiently tested on the various OS LabVIEW supports to add them to the product.
Also, these primitives assume your system locale to do the ANSI<->UTF-8 conversion. A while back, I had a need to be able to convert foreign text that was not in encoded in my computer locale to UTF-8. So, a colleague of mine helped me write the appropriate Windows API call in LabVIEW to do that.
Some people might find these VIs useful, but they only work on Windows and they provided as-is, without any guarantee that they are free of bug. Use at your own risks!
Well, "SMTP Send Email Send Message.vi" contains "text to utf-8" since several LabVIEW versions. The function "text to utf-8" should be quite stable.
I used Text to UTF-8 in a VI, and it works very well, but the compiled .exe (created with application builder) of the same VI doesn't work. It runs, but results are wrong, and i think it's because of Text to UTF-8. Someone has any experience in compiling these functions?