LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading UTF-8 Encoded ASCII Files

I'm trying to read an ascii file that is UTF-8 encoded (according to Notepad) using the simple "Read Characters from File.vi". The displayed characters in Labview do not match the displayed characters in notepad.
 
Files encoded in "ASCII" read just fine and match in both.
 
What can I do to interpret the UTF-8 file as UTF-8 in a LabView Read?
 
Thanks!
0 Kudos
Message 1 of 3
(2,827 Views)

If you open the file in Notepad you can choose "Save As", and then select the encoding at the bottom. Change it to ASCII, and then read in the new file in LV like normal.

If you need this to be an automated thing, I would suggest changing the application that writes to the file, to do so in ASCII. Especially if your not going to get any characters that aren’t in the standard ASCII set.


0 Kudos
Message 2 of 3
(2,816 Views)
Sometimes it is the simplist things! Thank you. These are playlists generated with Windows Media Player. The one's burned from Celtic CD's are sometimes UTF-8.
 
Thanks again for the suggestion!
 
0 Kudos
Message 3 of 3
(2,812 Views)