Compressing files with local characters

Hello community,

I will compress files with LabVIEW, but the names of files in the zipfiles be annoying especially since I use English characters such as 'a', 'e' etc. If I zip outside labview then the file names are very well, then I guess it's a thing of labview. Can you help me how can I compress these filenames correctly? Remove / change the file names is not an option.

Thank you!

The code that I currently use:

1984 wrote:

I checked the document briefly before I sent my post. I sent the UseUnicode = True, it makes no difference. anyway I don't think it's really applicable according to the case that the problem lies in the file add to zipfile.vi which is password protected. Access roads entering this VI have filenames with the correct characters.

There is no easy way to solve this problem. The zlib library and actually really library miniZIP to cover that was used for the ZIP implementation in LabVIEW does nothing on the character encoding. ZIP files traditionally use some codepage BACK system used at the time. The code page of BACK, however, is not the same as the ANSI code page using standard Windows GUI applications. If any special character in LabVIEW is passed to the function ZIP and it interpreted as a different character.

The simplest solution would be to convert filenames to the OEM code page before passing the ZIP function and conversion back from OEM to ANSI when it receives the file names of the functions. New formats ZIP support also the UTF8 encoding, but which is not supported by the serving ZIP support miniZIP library in LabVIEW.

I had to deal with these issues in the Toolkit OpenG ZIP library and this is something very sensitive and involved, especially considering that it should run on the platforms more than just Windows. For now, I decided to work around this problem and to focus on obtaining a new version of the library, without trying to deal with some of these issues of character encoding.

My recommendation is really just avoid these characters special altogother for now.

And I'm not sure that you would gain a lot by calling a command line utility. Unlike the GUI Windows programs, the command line utility also works with the OEM code page and assume that its parameters are in this code page, so you will need to convert special characters in any case before generating the command line string.

Tags: NI Software

Similar Questions

  • You can compress files with Adobe Reader DC?

    You can compress files with Adobe Reader DC?

    N ° you need Acrobat for that.

  • Cannot read Document in FileUtilities to search a file with french characters in the file name

    Hello

    I'm looking for a file with french characters in the filename as"ecran.doc" in my unix Server directory and write the file somewhere, say, in a list of documents, or write to files to another directory.

    I use to read Document in FileUtilities of the Foundation, but it cannot read the file due to the french character in its name. Although it can find another name of file without these french characters.

    I tried to rename but who also can not find the file with the name of the french character.

    Please provide any idea to solve using LC operation.

    Kind regards

    Raj of Rohan.

    Hi Thomas,

    Thanks for the post, but I already found a solution to this a month ago. Sorry for not posting the solution.

    Just put the '-Djava.property.file.encoding = ISO8859-1' in your server startup JVM argument and position the rebound on the back of the server to choose the new JVM arg . And now the reading service of Document in FileUtilities of the Foundation read characters all french.

    ISO8859-1refers 'no. 1 Latin alphabet,"consisting of 191 characters from the Latin alphabet. This character encoding scheme is used throughout the Americas, Western Europe, Oceania, and much of Africa. It is also commonly used in most of the Etymologies of the East Asian languages.

    Kind regards

    Raj of Rohan.

  • empty data file with special characters in the name

    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    Since it is empty, it would be possible to create the data file void anothr
    using the:
    ALTER database create datafile ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'
    as ' / oracle/PRD/spdata2/r3i_8/r3i.data8';

    and then recover datafile 'fully_qualified_file_name ';
    ALTER database datafile 'fully_qualified_file_name' online;

    How orders oracle faced with special characters?

    Thanks for your advice

    user6737818 wrote:
    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    It should work using a file as the definition of source file number and a new name for the new file. Works for me:

    orcl> alter database create datafile 7 as 'c:\tmp\newname.dbf';
    
    Database altered.
    
    orcl>
    
  • [JS MAC] Problem of path of the file with special characters

    Hello

    I'm trying to declare the path of a file on a text file. One of the folders includes a special character such as "love".

    So, when I try to write a txt file with this path, it fails.

    Here are some that I've isolated for debugging.

    The problem appears on a Mac, but may be present on a PC as well.

    Given a file open in Indesign

    This file is placed in a subfolder named "love."

    Dittos var = line (app.activeDocument.fullName);
    var myFileFullName = theFile.fsName;
    var modifsArr = [];
    modifsArr.push (myFileFullName);
    var queue = txtFile (Folder.desktop + "/ test.txt");
    If (file (Folder.desktop + "/test.txt").exists is false))
    {
    var txtFile = new file (Folder.desktop + "/ test.txt");
    }

    txtFile.open ("e");
    txtFile.seek (0.2);
    modifsArr = modifsArr.join ("\r");
    theFile.write (modifsArr); Here the writing fails
    theFile.close ();

    How can I solve that?

    TIA

    Loïc

    Adjust File.encoding...

    Dirk

  • INI file with the characters multibyte to the language question

    Hello

    I am doing research on several language support in our CVI programs.
    I'm new to programming multibyte, as always I coded it in English so far.

    I found the Interface Localizer and have played around with translating my GUI controls. That works well, except on the title bar that is displayed in one code other than the language, I translate. But it will not work for messages popup or dynamic views.

    I read a few white papers. I'm not too worried about Run Time messages, for the most part, I'm worried about specific incentive program and the GUI.

    I've seen several topics suggesting using an external INI file to translate specific messages in my program. So I tried to create an ini file that uses Unicode and a Chinese character.
    When I call Ini_NumberOfSections using this INI file, my software returns a number of sections 0 when there is, in fact, the 1 article. This happens if I format my INI file in any format other than ANSI, Unicode.

    So my question is simple: how to read an INI file and specifically the tag, using characters to multibyte to Unicode?

    Is this a setting? Or I have to write my own read INI and the analysis of function?

    Thank you very much.

    Ok

    I finished my first step in the R & D. Here's what I know:

    I tried several formatting options, including XML, TXT, CSV and XLSX (Excel).

    With the help of the CVIXML is not an option (the less the way I tested it) since it does not accept Unicode in CVI. I did a little research and found out how to configure my XML file to Unicode, but whenever I try to read using CVIXML, the result is a failure. So I gave up this process.

    A .csv file is not a good option, because of how the file behaves in Excel. With characters Unicode, the file does not open as expected, and all my data is in the first column. If you are strictly using a text editor such as Notepad, you can read the .csv file and use it in CVI. The only issue is that you must compensate for the multiple byte characters, which I did not. So, because of the tampering of the .csv, I eliminated it as an option.

    So here's the solution I came up with that. I use the Excel Report commands (via excelreport.fp in toolslib).

    Using this method I can format my language options in Excel, view my Unicode characters and still open as planned in the CVI.  I just have to open my Excel file and load all the options of language in memory, and then close the Excel file.

    The only caviats are speed and Unicode does not appear correctly if your operating system is configured in a non-unicode format. This isn't a problem but it's a windows setting. In my typical American, unicode characters appear as? But if I change my localized language to, for example, Chinese then unicode is displayed normally.

    So, for now, this is the solution I've identified. Thanks for the tips. I hope that others will find it useful.

  • compressing files with the compression tool built into windows XP and adding a password

    Hello

    If I create a file zip compression tool in windows Xp using then add them a password is it get encrypted?  If not can it be encrypted and at what level.

    For example with Winzip, there is a choice of Zip2, 128 BIT AES 256 Bit AES.  What is the equivalent of MS?

    Thank you

    Stuart

    Hello, stuey650

    Password protecting a zip file uses a form of encryption to encrypt the file. How, it is beyond the scope of this forum.

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error importing CSV files with "hidden" characters using the external Table

    Hi people

    Bit of a strange here.

    Well, we are accustomed to the use of the external Table method to load data from CSV files in the database, but a recent event presented us a problem.

    We have received some CSV files that "look like" regular CSV files, but Oracle will not load them.

    When we looked at the CSV using VIM on a UNIX machine, we saw the following characters 'hidden' between each regular character in the file.
    ^@
    If a string that looks like this when opened in Excel/Wordpad etc.
    "TEST","TEXT"
    Looks like this when exmained with VIM
    ^@"^@T^@E^@S^@T^@"^@,^@"^@T^@E^@X^@T^@"
    Has anyone encountered this before?

    Thank you very much

    Simon Gadd
    Oracle 11g 11.2.0.1.0

    Hi Simon,.

    ^ @ represents the ZERO character (0x00).
    So, most likely, you have a file encoded in Unicode.

    You need to specify the character set in the record specification (and if necessary the byte order mark), for example:

    CREATE TABLE ext_table
    (
      col1 VARCHAR2(10),
      col2 VARCHAR2(10)
    )
    ORGANIZATION EXTERNAL
    (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY dump_dir
      ACCESS PARAMETERS
      (
       RECORDS DELIMITED BY '
    ' CHARACTERSET 'UTF16'
      FIELDS TERMINATED BY ','
      )
      LOCATION ('dump.csv')
    )
    REJECT LIMIT UNLIMITED;
    

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16536/et_params.htm#i1009499

  • Can't empty the trash due to a file with the filename of garbage

    MacBook Pro El Capitan - Trash has a/b/folder with a file with Chinese characters of garbage looking like file name which can not be changed or done something with. Trash does not open. sudo rm - rf don't get rid of it either. Any ideas?

    Thank you.

    Check SystemPreferences-> users & groups-> LoginItems, to see if there is something that has to do with this file, if so, remove it with the sign, if not, the next step:

    Restart the mac and then empty the trash.

  • DBMS_LOB. FileExists returns 0 for BFILE with special characters in their names

    Hello.

    As part of a migration, I'm trying to load these binaries (mostly PDFs) in a column of type blob of a table (oracle 11 g).

    Before loading the file, I get the positioner with bfilename and search for fileexists.

    The problem is that I found several false negatives for dbms_lob.fileexists, all files with special characters in their names, like a e i o u, for example.

    Any sugestion to work around?

    I have change the message to add nls info, as it is migth play an important role

    The database is in AMERICAN AMERICA WE8MSWIN1252

    (Don't know why)

    and my session is in SPANISH SPAIN

    After a lot of tryal and error, I found the answer. Here it is:

    src_loc: = bfilename ('MYDIR', Convert (l_filename, 'AL32UTF8'));

    Now, plsql block "sees" the file.

  • Satellite A100 - 147 Compression file error with the product recovery disc

    I have Toshiba A100-147, just out of warranty. I tried to recover with a disk, disk unpack to 69% and then I get the message "ERROR READING OF COMPRESSION FILE (1). I have no choice but to click OK in the error message box, and then quit the recovery as she stops running.

    Any help would be extremely welcome.

    Hello

    It looks like a problem with the Toshiba Recovery CD.
    Have you tried to repeat this procedure?

    What of the HARD drive? You format the HARD drive using an original CD of XP MS?
    It s very interesting if a format of HARD drive could allows to perform the installation of the OS since the Toshiba Recovery CD.

    I remember that something like this has happened on my laptop s friend was not able to recover the operating system using the Toshiba CD. Finally, we found that some sectors on the HARD disk has been corrupted. Format drive HARD allowed integer and my friend was able to install the image of Toshiba.
    It's worth a try ;)

    But of course, this error could occur because of the faulty recovery CD.

  • When I download compressed files, they go to the local > temp location, when I extracted all the files, they are sent to the My Documents folder. Can I go to the local > temp location and delete the zip file?

    When I download compressed files, they go to the local level > temp location, when I extracted all the files, they are sent to the My Documents folder. Can I go to local > temp location and delete the zip file? Knowing that I still have the data in the My Documents folder.

    Once they are checked, of course. If you want to keep a backup, you can move the zip file in your documents folder.

    In fact, you can delete everything in the temporary folder that is not currently in use. Best time to do this removal is immediately after the start, before launching other applications.

  • Compressed file (zipped problem)! Failed to open due to the "open with..." function. "do not set correctly.

    I'm having a problem with compressed (zipped) folders. I'm unable to create brand new. Maybe it's because the function "open with...". "for compressed (zipped) folders is not set correctly, they still appear as programs Adobe instead of compressed files, which makes them unable to open or run. How can I use "open with...". "to open the files compressed as compressed folders? I'd appreciate any help I can get. Thank you.

    File association fixes MVP Ramesh - includes .zip
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html MS - MVP - Elephant Boy computers - don't panic!

  • Lost the ability to compress or decompress files with built in Win 7 zip functionality.

    Original title: integrated Zip/Unzip

    I lost the ability to compress or decompress files with built in Win 7 zip functionality.

    Can I get it back and how?

    If a right click | Send to | Zipped (compressed) file is missing, see this.
     
    How to remove and restore the value default Windows 7 send to Menu items
    http://www.SevenForums.com/tutorials/45421-send-context-menu-remove-restore-default-items.html
     
     

    If 'Extract all' is missing, see this.
     
    Windows 7: restore "extract all" to the context menu of Windows 7
     
  • Games do not work once windows clean install. Also a problem with compressed files.

    After the reinstallation, games (fifa 12, black ops are those I've tried). they display some lack file d3dx9_35 something like dat. Also the compressed files are not extacting... says format d is not taken in charge or something.

    Please let me know if something was wrong with the d resettlement or do I hv to install missing components.
    Thanks for any help provided.

    seems like it was a problem of dx. Works great after a download of dx9. Thanks anyway.

Maybe you are looking for

  • How to use AutoComplete

    Firefox has AutoComplete for privacy facility?

  • Destinations of Windows file is missing or damaged

    I have problems to install updates on my laptop. I have discovered that the destination Windows file is missing or damaged. Someone knows how to solve?I use Windows Vista Home Premium. Microsoft, despite their best efforts, could not sort it out. Rep

  • How to use a cursor to turn on or turn off the lights

    Hi guys. I'm quite familiar with Labview now, but can't seen to get my head around this problem. I have a slider that is numbered from 1 to 10. under the cursor, I inserted 10 LED lights. My sister in order to use the slider to turn off the lights an

  • Cannot print over wireless network

    Title: PRINTER Wi - fi printer starts to print and stops every time 5%.

  • Can't turn on my firewall.

    I was wondering why I can't turn on my firewall. I have windows Vista on a laptop Dell Vostro 1700. I have webroot antivirus with antispyware 'Required by the work' and it doesn't tell me if it is a firewall program.  I turn on my windows firewall, b