From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

undocumented function "text to utf-8"

Solved!
Go to solution

I can check, but can you tell us which version of LabVIEW you are using? And also, this function might return different results depending on the input text and the system locale of the machine.  Are you comparing the differences between the development and the executable versions on the same machine?

0 Kudos
Message 11 of 24
(7,609 Views)

Same machine (Windows 7 with Labview 11) and same input.

I also tried the exe only on a Windows XP (didn't work).

I haven't debugged the exe, but the rest of the failing code is just ordinary string manipulation functions

0 Kudos
Message 12 of 24
(7,597 Views)

UTF-8 strings can contain characters that aren't valid ascii. I can imagine that some string operations fail (e.g. format into / scan from string), but I wouldn't expect a difference between development environment and compiled EXE here...

0 Kudos
Message 13 of 24
(7,589 Views)

That's correct, the EXE works just as well as the Dev version.  I attached my tests.

Message 14 of 24
(7,580 Views)

Ok, i found the problem with my .exe. The UTF8 function was innocent.

(one more reason to support it!)

Thank you

Message 15 of 24
(7,560 Views)

Hi all,

 

For information, I use the functions included in "UTF8 LV80.vi". The two conversion functions seems to have string length limitations on UNIX OS. If the input string length is upper than 1024 bytes, the following error is generate :

 

Error 1396 occurred at Text to UTF-8

Possible reason(s):

LabVIEW: Cannot convert text from the source character set to the destination character set.

 

This limitations don't exist on WINDOWS OS.

 

Do you see some reasons on this problem? 

Message 16 of 24
(7,518 Views)