create unicode file and read unicode file

This is a discussion on create unicode file and read unicode file within the labview forums in Programming Languages category; Hi       How can create a unicode file and open unicode file in LV   Regards Madhu...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-30-2008, 01:10 AM
gmadhu
Guest
 
Default create unicode file and read unicode file

Hi
 
    How can create a unicode file and open unicode file in LV
 
Regards
Madhu
Reply With Quote
  #2  
Old 07-30-2008, 01:40 AM
mathan
Guest
 
Default Re: create unicode file and read unicode file

<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=266806&amp;que ry.id=154543#M266806" target="_blank">here </a>and <a href="http://forums.ni.com/ni/board/message?board.id=200&amp;message.id=18135&amp;quer y.id=154543#M18135" target="_blank">here</a>
Hope it helps! :smileyhappy:
Mathan
Reply With Quote
  #3  
Old 07-30-2008, 01:40 AM
TonP
Guest
 
Default Re: create unicode file and read unicode file

At <a href="http://forums.lavag.org/Convert-between-ASCII-and-Unicode-file2.html" target="_blank">LAVA</a> there is some pure LabVIEW code. Ton
Reply With Quote
  #4  
Old 07-30-2008, 01:40 AM
rolfk
Guest
 
Default Re: create unicode file and read unicode file

gmadhu wrote:Hi
&nbsp;
&nbsp;&nbsp;&nbsp; How can create a unicode file and open unicode file in LV
&nbsp;
Regards
MadhuIn principle you can't. LabVIEW does not support Unicode (yet)! When it will officially support that is a question that I can't answer since I don't know it and as far as I know NI doesn't want to answer.So the real question you have to ask first is where and why do you want to read and write Unicode file. And what type of Unicode? Unicode is definitly not just Unicode as Windows has a different notion of Unicode (16 Bit characters) than Unix has (32 Bit characters). The 16 Bit Unicode from Windows is able to cover most languages on this globe but definitly not all without code expansion techniques.If you want to do this on Windows and have decided that there is no other way to do what you want you will probably have to access the WideCharToMultiByte() and MultibyteToWideChar() Windows APIs using the Call Library Node in order to convert between 8 bit multybyte strings as used in LabVIEW and the Unicode format necessary in your file.Rolf Kalbermatter
Reply With Quote
  #5  
Old 07-30-2008, 01:40 AM
rolfk
Guest
 
Default Re: create unicode file and read unicode file

TonP wrote:At <a href="http://forums.lavag.org/Convert-between-ASCII-and-Unicode-file2.html" target="_blank">LAVA</a> there is some pure LabVIEW code. TonThis code will only work if all the Unicode characters are in the standard ASCII 7 bit character set. This is only true for English text and possibly a few other European languages. Most other languages use special characters in their alphabet somehow, not to talk about eastern languages such as Chinese/Japanese or Arabic with a completely different character set.If one knows one is dealing with Englisch text only it would be better to not use Unicode at all but just store it as ASCII text instead :-)Rolf Kalbermatter
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:12 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.