04-05-2019 09:48 AM
I'm fairly new to LabVIEW, and I'm not sure which forum is the best place for this question.
I've been working with tab-delimited text-file outputs from LabVIEW VIs that act as control/data acquisition systems with various test cells. Even though all the outputs are raw text files, I've encountered four separate encodings for those files so far, namely UTF-16, UTF-16_le, UTF-8, and ANSI. More confusingly, I've seen the encoding of output files change between runs without changes in the code, namely from UTF-16_le to ANSI. In looking at the write-to-file VIs available in the library, I haven't seen an option to choose a default encoding, and ideally, I would like to specify UTF-8 as the default encoding for output files.
All that being said, is there a write-to-file VI or option to select where I can choose a default encoding? I've uploaded a screenshot of the context help for the VI that the programs I'm working with use to create the output files in question, as it is no longer in the standard library (these are slightly older programs).
Thanks
Solved! Go to Solution.
04-05-2019 10:15 AM
Hi Fox,
there is no such thing in LabVIEW (yet). All files you write are plain ASCII (with using 8bit for each char).
The different encodings should only happen because of the software you are using to read the files created by your LabVIEW routine: that software seems to try to guess the best option…