LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

character encoding write to text file

Hi all,

my problem is the following: I created an application which accepts agruments from the command line as input to save a specific set of a database columns. This arguments may contain also hungarian characters. The next step is that I have so many arguments that I have to create a batch-file, because the space in a windows shortcut is not enough for this. I generate this batch file from LabVIEW. Now I use the write to text file VI to do it, but the problem is that LabVIEW uses the Windows character encoding (like e.g. I edit it with notepad), but the batch file uses some other coding (central european DOS), so my special characters are shown wrong, and the batch doesn't work.

The question is: is there a possibility to specify the character encoding for the output "text" file? many thanks. zsolt

winXP / LabVIEW 8.20
0 Kudos
Message 1 of 2
(3,225 Views)
Hi zsolt,

AFAIK you cannot specify the character encoding scheme.

But you can do as follows:
Before saving your string to text file you can do a replace operation for all special characters: search them in your string and replace them with the proper (ASCII?) code. Then save the string...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(3,220 Views)