LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unicode and .UDL files

Hi!
I have to access many different MS Access DB with OLE ODBC.
The connection to MS Access DB it is possible with an UDL file (think about
it as a text file)
I could create it on the fly (just few lines), but It looks that orignal UDL
file are written in Unicode.
Anybody knows if there is an easy way to convert a string (I mean a LabView
string) in unicode?
Thank You , OldSmobile
0 Kudos
Message 1 of 4
(3,193 Views)
As far as I remember, the corresponding ASCII codes are the same, except that each one is two bytes long in Unicode. So, add an ASCII 0 character for each one and that's it. For example 'A' (hex 41) will be in
Unicode \0A (hex 0041). I don't know if you have to add a Unicode mark to your file ... if that's the case, write something in MS Word and save it as a Unicode Text File (and read it in LabView) in order to study the file format.
If you want more details, take a look at http://www.unicode.org/.
good luck
0 Kudos
Message 2 of 4
(3,192 Views)
"Lab Viewer" ha scritto nel messaggio
news:50650000000500000087430000-1000509150000@exchange.ni.com...
> As far as I remember, the corresponding ASCII codes are the same,
> except that each one is two bytes long in Unicode. So, add an ASCII 0
> character for each one and that's it. For example 'A' (hex 41) will be
> in
> Unicode \0A (hex 0041). I don't know if you have to add a Unicode mark
> to your file ... if that's the case, write something in MS Word and
> save it as a Unicode Text File (and read it in LabView) in order to
> study the file format.
> If you want more details, take a look at http://www.unicode.org/.
> good luck

Thank you Lab Viewer! 🙂
I'm exeperimenting... I'll let you know my results.
Bye, OldSmobile
0 Kudos
Message 3 of 4
(3,192 Views)
Hey OldSmobile, did you ever get this thing working?... I am trying to do the same thing...
0 Kudos
Message 4 of 4
(2,762 Views)