Reading unicode text file

This is a discussion on Reading unicode text file within the labview forums in Programming Languages category; I could not find a VI to read unicode text files - this one reads unicode on the assumption that it contains plain text.  Might help someone struggling with unicode text files produced by some applications.  Enhancements welcome.   James T...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-22-2007, 01:10 AM
James T @ UWA
Guest
 
Default Reading unicode text file

I could not find a VI to read unicode text files - this one reads unicode on the assumption that it contains plain text.  Might help someone struggling with unicode text files produced by some applications.  Enhancements welcome.
 
James T
Reply With Quote
  #2  
Old 08-23-2007, 12:40 AM
James T @ UWA
Guest
 
Default Re: Reading unicode text file

I posted a VI (attached to the original message) that reads a unicode text file like the example attached to this reply, containing the following text:
 
TThis1TThis2TThis3
 
I found that some applications (& web sites which produce data) are now standardizing on unicode text format - this will become more pervasive in future.  The LabVIEW VI "Read from Text File" can only read plain ASCII text so this VI sits on top to convert unicode text into plain text.  However it is assumed that the unicode does not contain any non-standard ASCII characters, but flags the presence of non-standard characters if they are found.
 
James T


TThis1.txt:
http://forums.ni.com/attachments/ni/...5/1/TThis1.txt
Reply With Quote
  #3  
Old 08-28-2007, 03:40 AM
James T @ UWA
Guest
 
Default Re: Reading unicode text file: VI attached

Thanks for the suggestions - finger trouble - here is the VI attached.  Hopefully.  Thanks for the alternate Windows only solution!
 
James T


uni-string-read.vi:
http://forums.ni.com/attachments/ni/...string-read.vi
Reply With Quote
  #4  
Old 07-30-2008, 01:40 AM
rolfk
Guest
 
Default Re: Reading unicode text file

Matthew Kelton wrote:I don't know where I got this, but found it when I needed to do some Unicode conversion from the registry.It's from a post here on this forum from me where I posted that library.Rolf Kalbermatter
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:18 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.