LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save a notepad encoding type by default as Unicode

Hi All,
 
I am facing a problem with one of the file concepts in Lab view 8.5
My intention is to open a file (ext as .hrl) write some data to it and save as the same.
 
Actually while opening a file and writing text i could succeed but the encoding type its saving as ANSI by default...
But my requirement is it should save as Unicode...
 
Please see the attached jpg's
 
hrl is nothing but a notepad with few syntax's
waiting for ur dearest reply...
 
Cheers,
Suneel.V
Download All
0 Kudos
Message 1 of 3
(6,041 Views)
Hi Suneel,

the file extension is just a name and no indication of file content. So it's not interesting if your textfile has an extension like *.hrl or *.txt!

This isn't the case with your attachments: A BMP doesn't magically converts to JPEG by just renaming the file... Please don't attach BMPs in the forum, they only offer long transfer timesSmiley Sad PNGs are much smarterSmiley Happy

To your question:
Unicode support is quite limited in LV. But there is some, deeply hidden in the vi.lib. Search the forum for UniCode!


Message Edited by GerdW on 04-21-2008 03:05 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(6,024 Views)
Hi Gerdw
 
In a hurry i've done that....
but anyways i tried in the form but i couldnt find anything related to unicode encoding while saving...
Please cooperate in this context..
 
Time being we've written a patch in VB.net
by running a exe which will open the .hrl file already saved with ANSI encoding and change it to Unicode encoding..
But we feel that is a temporary solution....
So pls provide us proper a solution in Labview which i feel using Activex can be done....
But to be frank i'm poor in Activex....
 
Waiting for ur reply..
 
 
Cheers,
Suneel.
Download All
0 Kudos
Message 3 of 3
(5,987 Views)