| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi How can create a unicode file and open unicode file in LV Regards Madhu |
|
#2
| |||
| |||
| <a href="http://forums.ni.com/ni/board/message?board.id=170&message.id=266806&que ry.id=154543#M266806" target="_blank">here </a>and <a href="http://forums.ni.com/ni/board/message?board.id=200&message.id=18135&quer y.id=154543#M18135" target="_blank">here</a> Hope it helps! :smileyhappy: Mathan |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| gmadhu wrote:Hi How can create a unicode file and open unicode file in LV 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 |
|
#5
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.