ZipEntry with umlaut

Following code is crashing if zip file contain file with umlaut character in it's name.
ZipEntry zipEntry = (ZipEntry) enum.nextElement();
InputStream instrm = zipFile.getInputStream(zipEntry);
File unzippedFile = new File(file.getParent(), zipEntry.getName());//.getName() returns "?" on umlaut place
FileOutputStream outstrm = new FileOutputStream(unzippedFile);
int bytesRead = instrm.read(buf, 0, 1024);//Null pointer exception...
Does somebody have an idea how to avoid this happens?
The problem take place only with ZipEntry. Normally I can work with files which contain umlauts in the name.
Thanks!!!

sorry, i know its not a help...
its a problem with jdk, look here:
http://developer.java.sun.com/developer/bugParade/bugs/4092784.html

Similar Messages

  • File Adapter - File Name with umlaut

    Hi,
    does anyone know if XI is able to process files
    which names contain an umlaut e.g. "täst.xml" or "töst.xml"?
    In our scenario the file adpater always polls on the specified directory but files with an umlaut in their name
    are not processed. In the communication channel we specified the filename with a wildcard (*.xml).
    In the adapter monitor the files are shown as processed even though no messages are shown for example in sxmb_moni.
    As further information: Files without an umlaut in their name are processed correctly.
    Thanks for any help.
    Holger Wehage

    Hi Holger,
    as you wish
    file channel:
    *.xml
    Send binary file "öööö.xml" from FTP server "ftp.server.com.pl:/pub/change/nozabs/", size 246 bytes with QoS EO
    I can see it in sxmb_moni so it works
    hope this helps
    but at least you know that it works with umlaut
    Regards,
    michal

  • I have Adobe Photoshop 10 installed on my MacBook Pro but cannot get it to type an O with Umlauts as it does on the keyboard outside Photoshop

    I have Adbobe Photoshop 10 on my MacBook pro but when using it cannot get an O with Umlauts, which are easily done outside Adobe.  I feel sure that it must be possible, but nothing I have tried has succeeded.  Can anyone help?

    How are you trying to get the Ö? By holding down the O key or by pressing Option-U to get the umlauts and then press the O?
    I have a later version of Photoshop and am able to type Ö using the "Option-U + O" method, but not using the "hold down O" method. My guess is this has to do with the type engine inside Photoshop. Adobe apps tend to use a different type engine because it is capable of things the OS type engine cannot do.

  • Loading a CSV file with Umlaut characters (àáä)

    Hai,
    We are uploading a CSV file though a Custom JSP page built based on Oracle JTF framework.
    The JSP page is loading the data into FND_LOBS table using JTF object, oracle.apps.jtf.amv.ServletUploader.
    The CSV file in the FND_LOBS table stored properly with the umlaut characters.
    Now the JSP page invokes a Java object to read and parse the data. We are selecting the data first into BLOB object and then using the Input Stream Reader to get the data.
    Here is the sample code:
    oraclepreparedstatement = (OraclePreparedStatement)oracleconnection.prepareStatement(" SELECT FILE_DATA FROM FND_LOBS WHERE FILE_ID = :1 ");
    oraclepreparedstatement.defineColumnType(1, 2004);
    oraclepreparedstatement.setLong(1, <file id>);
    oracleresultset = (OracleResultSet)oraclepreparedstatement.executeQuery();
    blob = (BLOB)oracleresultset.getObject(1);
    InputStreamReader inputstreamreader = new InputStreamReader(blob.getBinaryStream());
    lineReader = new LineNumberReader(inputstreamreader )
    lCSVLine = lineReader.readLine();
    I tried printing the character set used by the InputStreamReader and it returned as ASCII
    Now I tried setting the different character sets to read Umlaut characters(german chars) but nothing has worked.
    InputStreamReader inputstreamreader = new InputStreamReader(blob.getBinaryStream(),"UTF-8");
    Can someone please let me know where and how to set the Character Set to accept the Umlaut characters like àáä?
    Thanks,
    Anji

    Thank you for the quick response.
    Requirement:
    I need to retrive the BLOB object with umlaut characters from database, parse the data with comma delimeter into strings and store in database.
    I am viewing the umlaut data from the database table using TOAD utility tool.
    I tried the same code example provided above but it is not working as expected. The umlaut characters are translated to 'ýýý.
    CODE EXAMPLE:
    Input:
    test_umlaut (sno NUMBER, col1 VARCHAR2(100), col3 BLOB);
    insert into test_umlaut(sno,col3) values(200, utl_raw.cast_to_raw('äöüÄÖÜ' ))
    Note: Verified that the database is showing the umlaut characters on selecting the col3 and storing in a flat file
    --- code
    OraclePreparedStatement oraclepreparedstatement10 = null;
    OracleResultSet rs = null;
    oraclepreparedstatement10 = (OraclePreparedStatement)oracleconnection.prepareStatement(" SELECT col3 FROM test_umlaut WHERE sno = 200 ");
    oraclepreparedstatement10.defineColumnType(1, 2004);
    rs = (OracleResultSet)oraclepreparedstatement10.executeQuery();
    while(rs.next()) {
    BLOB b = (BLOB)rs.getObject(1);
    InputStream is = b.getBinaryStream();
    InputStreamReader r = new InputStreamReader(is,"utf8");
    BufferedReader br = new BufferedReader(r);
    String line;
    while( (line = br.readLine()) != null) {
         System.out.println(line);
         OraclePreparedStatement oraclepreparedstatement12 = null;
         OracleResultSet oracleresultset12 = null;
         oraclepreparedstatement12 = (OraclePreparedStatement)oracleconnection.prepareStatement(" INSERT INTO test_umlaut(sno,col1) VALUES (300,?) ");
         oraclepreparedstatement12.setString(1,line);
         oraclepreparedstatement12.executeUpdate();
    br.close();
    r.close();
    is.close();
    Output: Verified the output from the database table which is inserted in the loop above.
    select col1 from test_umlaut where sno=300
    ýýý

  • Recover folder with umlauts fails

    We have done a migration from a Solaris Sparc instance to a Solaris x86 instance.
    There we have the problem, that folder with umlauts can not restored if imsrestore is called from imsasm <- Networker recover
    Suche folder is on Sparc e.g.:
    =+Mailablage/=+Gesch&+A+O+Q-ftl%d allgem%d
    is contained in the backup:
    Mailablage%GeschÀftl. allgem.
    The restore ends with no error but the folder is not restored.
    Is there a workaround for this problem?
    Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)
    libimta.so 7u4-27.01 64bit (built 08:47:11, Aug 30 2012)
    Using /opt/SUNWcomms/messaging64/config/imta.cnf (compiled)
    SunOS webmail 5.10 Generic_Virtual i86pc i386 i86pc
    Edited by: cgrzemba on 21.11.2012 06:07

    figured that at this point, i'm pretty much screwed.

  • XML_SQL with umlaut

    Support the XML_SQL Api umlaut in XML Files??
    d, |, _, v ??

    While inserting i get a
    oracle.xml.sql.OracleXMLSQLException and further a
    NumberFormatException. Which parameter do I have to set to avoid
    these Exceptions. I can insert the file in my local db but I get
    the Exception on the server db. The value I want to insert for
    expample is 30,1. Maybe the JDBC-Driver tries to convert the String ;30,1+ to an
    Integer-Object. This will cause the described Exception since
    the Integer-Class requires ;.+ instead of ;,+ for decimal point.
    I have another problem generating an xmlfile when there
    are "Umlaute" in the data. E.g. V and \. Exchanging these to Oe
    and Ue than it works fine.Use ISO-8859-1 character set to work with umlauts, e.g.:
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    .. but you can use the default UTF-8 encoding too, umlauts will
    be replaced by equivalents as ;C&#376;+
    Alex

  • ZipEntry with special characters

    Hi folks,
    I wrote a little servlet that lets you choose some files from the server and then you can download them all packed in one zip file. It works perfectly if the filenames contain no special characters, but if the filename contains german Umlaute (������) the ZIP File contains strange entries like '+�' for � and ++ for '�'. The file entry names are generated creating a new ZipEntry("...") with the file name.
    I tried to change the charset for the filename String but the results became more and more ugly.
    If anybody knows how to work around this problem I would be glad.
    Greetings
    Oliver

    I think it has to do with system locale on the
    computer. Check your op sys set up for the country. I
    doubt US English supports foreign characters, however
    the US goverment will ( a small political joke about
    our country wasting money on foriegn puppet goverments
    ).I am using Windows NT 4.0 as OS and I tried to change the locale to US English, but nothing changes....

  • Filename with Umlaut in cfexecute outputFile attribute

    Hi,
    I'm running CF10 on SLES11 (Linux) and am experiencing a problem when using Filenames with German umlaut characters (ä,ü,ü etc.) for the outputFile attribute. These filenames are mangled in the Linux filesystem, e.g. "Anästhesie" becomes "An?sthesie".
    Same thing happens when umlaut characters are used with "cffile action='write'" in the file attribute, so it is not an option to write the output of cfexecute into a variable and then write the content of that variable to a file using the cffile tag.
    I'm pretty sure this is a character set encoding problem, but don't know how to solve it. AFAIK, CF10 uses UTF-8 encoding by default, the filesystem uses ISO-8859-15. How can I make CF store the correct filename in the filesystem?
    The filenames are the result of a database query and should remain unchanged so the database reference isn't broken. I'd prefer not having to resort to converting the filenames to pure ASCII (e.g. ä -> ae)
    before passing them as outputFile attribute.
    Regards, Richard

    hi dany,
    actually i escaped the url-string already, not by abap but by the javascript function escape(). but this seems not to work correctly (on ie6), so i changed it to a call of encodeURIComponent(), now it works.
    thanks,
    norbert

  • Problem with Umlauts

    Hi All,
    For our customer we managed a german application inside APEX, unfortunately we have some problems with showing the umlauts in the application.
    By showing a interactive report the umlauts in the data and in the column names are shown correct. But when I pressed the green wheel I saw Zurücksetzen instead of zurucksetzen.
    This problem also occured by logging into the application with a wrong password (Ungültige ID-Daten für die Anmeldung) instead of Ungeltige ID Daten fur die anmeldung.
    By the installation of APEX we run also the LOAD_DE.SQL script to translate the apex version. Before we run this script we set the language to german_Germany.AL32UTF8.
    When I look into the HTTP server in the dads.conf file I saw the follow row: PlsqlNLSLanguage German_Germany.AL32UTF8
    It seems that the problem is inside APEX instead of the application inside the APEX version (because the application shows the data correct). Is there a way to see which names are stored in the databse (to make sure that the data is stored correctly)?
    Has anybody an idea how to fix this problem?
    We have an Oracle 11G Database with apex version 3.2 and an HTTP Server.

    I find a solution for this problem.
    Below the steps we did to fix this issue
    I first checked the dads.conf, if you’re weblogic is correctly configured.
    Yes it was!
    Then I checked, if the database is able to save Umlaute
    Yes it was!
    Then I checked, if the database stores the Umlaute for Apex
    No it doesn't
    That means, that the import (load_de) was unsuccessfull.
    Then I checked the import files, which were saved on the server
    Everything seems to be correct.
    Then I checked other NLS related settings and found that ORA_NLS10 was set.
    Although we need this setting for some reasons, it “destroyed” our load_de.sql.
    Finally I unset this setting, and load the data again and now it worked.

  • Howto create recipient with umlaut?

    Hi there,
    when I try to send an eMail to a recipient containing an umlaut, the umlaut ends up as Question Mark.
    Umlauts in Subject and Body work just fine. I am using jdk 1.6.0.18/linux i386 and javamail 1.4.3:
    MimeMessage m = new MimeMessage(s);
    m.setFrom( new InternetAddress( "me@localhost" ) );
    m.setRecipients( Message.RecipientType.TO, new InternetAddress[] {
         new InternetAddress( "\"Schöne Umlaute\" <[email protected]>" ) // mail delivers but name is garbled
    Multipart body = new MimeMultipart();
    m.setSubject("Etwas schönes"); // works
    MimeBodyPart part = new MimeBodyPart();
    part.setText( "Ein schöner Inhalt." ); // works
    body.addBodyPart(part);
    m.setContent( body );Turning session debugging on reveals that the recipient name is being sent verbatim, whereas the subject is being encoded,
    so suspect the problem inside JavaMail. I tried both de_DE and de_DE.UTF-8 as LC_CTYPE.
    What am I doing wrong?
    Regards
    -- Holger
    Edited by: HolgerK on Jan 27, 2010 5:28 AM

    bshannon wrote:
    Yes, if someone is sending you addresses with the RFC 822 syntax but with Unicode characters,
    that's a mistake.The source of the addresses is more likely a user created string in the program sending the mail using JavaMail.

  • Problems with umlaut characters

    Hi,
    i´m on NW04 SP14 and ADS SP14.
    I have implemented a interactive form which is bound to a context node of a webdynpro application. This context node contains some attributes of type string.
    When I populate the attributes with some values containing umlaut characters the interactive form does not display them correctly (there is a space character instead of the umlaut character).
    Is this a bug in the forms solution??
    Thanks in advance.
    Regards
    Sebastian

    Hi Markus,
    ´
    the problem unfortunately still exists. Do you have any suggestions? Is it a bug or some misconfiguration in our environment?
    Thanks for your support.
    Regards
    Sebastian

  • ICal Server external Email Invitations Not working for names with umlauts!!

    Hi,
    I was testing external email invitations with iCal Server on Lion Server and encountered that if a Name that can Be resolved via iPhone or mac addressbook or even the sending iCal Account contains an umlaut something like this show up in iCal Server error log:
    2011-09-26 17:01:18+0200 [-] [mailgateway] 2011-09-26 17:01:18+0200 [-] [twext.web2.server#error] [Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 90: ordinal not in range(128)
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:388:errback
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:455:_startRunCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:542:_runCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1076:gotResult
    2011-09-26 17:01:18+0200 [-] [mailgateway]      --- <exception caught here> ---
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/resource.py:310:renderHTTP
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twext/web2/static.py:127:renderHTTP
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twext/web2/resource.py:109:renderHTTP
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1020:_inlineCallbacks
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/mail.py:334:http_POST
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/mail.py:958:outbound
    2011-09-26 17:01:18+0200 [-] [mailgateway]      /usr/share/caldavd/lib/python/twistedcaldav/mail.py:1199:generateEmail
    2011-09-26 17:01:18+0200 [-] [mailgateway]      ]
    2011-09-26 17:01:18+0200 [-] [caldav-1]  [AuthorizedHTTPGetter,client] [twistedcaldav.scheduling.imip#error] Could not do server-to-imip request : <twistedcaldav.scheduling.imip.ScheduleViaIMip object at 0x103c65ed0> 500 Internal Server Error
    2011-09-26 17:01:18+0200 [-] [caldav-1]  [AuthorizedHTTPGetter,client] [twistedcaldav.scheduling.scheduler.ScheduleResponseQueue#error] Error during PUT for mailto:someemailaddress@yourdomain: iMIP request failed
    And No Email is send!
    If changing the Umlaut ü to something like ue in the Sender or Receiver Name everything is alright!
    Thank you Apple for obviously Not testing Lion Server for international use :-/
    Maybe this help someone else who is using umlauts with iCal Server external Email invitations
    Regards
    Eldrik

    Hello Daryn,
    Thinks for commenting. I am very upset that Apple just said "No" when I asked for this to be fixed. There appears to be no way to submit this as an official bug that keeps ical from running.
    Apple actually had me reinstall my whole server and the issue was still there and then they just said "Oh, well I will email someone about it.".
    This is the first time Apple has stunk it up in my books. This is bad support for Server.
    Brad

  • Uploading File with Umlaute (German) - solved

    I am using the .csv to table package from Vikas. The uploaded file comes from one of
    my customers. The customer is supposed to save an .xls file as .csv and upload it into
    a collection. So far so good. Whenever there are Umlaute (ä, ö, ü), they are not translated
    properly and the collection shows a character ¿ instead. So, a REPLACE would not work
    there. Is there any experience on how to solve this problem? I have no chance to educate
    my customer not to use Umlaute or to ask him to check the settings in their excel, since
    they are numerous and anonymous.
    Thanks,
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Okay,
    With a little help from John Scott, I found a solution changing this part of the package to:
    FOR i IN 1 .. l_record.COUNT
             LOOP
                htmldb_collection.update_member_attribute
                                         (p_collection_name      => p_collection_name,
                                          p_seq                  => l_seq_id,
                                          p_attr_number          => i,
                                          p_attr_value           => CONVERT
                                                                       (l_record
                                                                               (i),
                                                                        'UTF8',
                                                                        'WE8ISO8859P1'
             END LOOP;and it works properly for the German characters.
    Thanks,
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Dir listing with umlauts / special characters

    I've got a directory tree, where several files have umlauts or french accented characters in their names.
    When I do 'ls' in such a directory, I can see the umlauts fine in Terminal, e.g.:
    Die rote Wüste - Michelangelo Antonioni.avi
    Nazarin - Luis Buñuel (span, eng sub, 1959).avi
    I've got the environment variable LC_CTYPE=UTF-8.
    However, when I do this: 'ls > /tmp/f.txt'
    and then open the text file in TextEditor, I get this:
    Die rote WuÃàste - Michelangelo Antonioni.avi
    Nazarin - Luis BunÃÉuel (span, eng sub, 1959).avi
    Does anyone have an idea, how to fix this?
    (BTW: I've got a similar problem when I rsync these files ...)
    Thanks a lot in advance.
    Best regards,
    Gabriel.

    Well, I've been using /Applications/TextEdit for these files, because I was assuming that it handles UTF-8 automatically.
    I opened the files now with Vim (my favorite editor), and, lo and behold, all special characters are fine!
    I think, that solves my problem, because I can even copy-and-paste the text from Vim into my notes.
    Best regards,
    Gabriel.

  • Translating with Umlaut / mutated vowel

    Hi everybody,
    I got the next problem in WD4J.
    I've created a simple text view on my screen with the content "headline". After saving the view I have the possibility to translate the text in the navigator. The only thing I have to do is to copy the xlf file of the view and then I can edit the element in the tab resource text. This is very simple and works perfectly.
    Until I don't try to translate a text that will contain in german a mutated vowel like ä ü ö. I can edit my entry but when I save the xlf nwds is processing a roll back to the old version without the mutated vowel. When I am not using an umlaut the xlf file will be saved and works perfectly.
    How can I translate content with special chars like ä ü ö in the xlf file?
    Thx a lot.

    Hi Radhika,
    I found your point under
    Window > Preferences > General > Editors > Text editors > Spelling
    but there the value "UTF-8" is already selected on the point encoding.
    I can enter the mutated vowels in the text fields and edit the next one. That works. But when I press the save Icon it involves a roll back to the old values.
    I have added a screenshot.
    [Link|http://server3.uploadit.org/files/mrischah-xlf.jpg]
    As you can see, the editor will accept my changes but on pressing save all changes will be reset.
    Thx for help
    Edit: Maybe this helps to find a solution: on the tab "header" the field "source language" is disabled and contains the creation language of the component.
    Edited by: Dirk Schilling on May 7, 2010 3:56 PM

Maybe you are looking for

  • ADF Portlets not showing up

    Hello , I am using Oracle AS 10.1.2 , Oracle Portal 10.1.4 , JDeveloper 10.1.3.3 installed on a Linux box. I have also downloaded and run the ADF Runtime Installer JAR file in the box. But, when I try to deploy an ADF screen as a JSR 168 portlet it i

  • Importing from Photoshop Elements 6

    Giving up on PSE and making the move to Lightroom. Over the past 8 years, built a database of more than 10,000 photos with stacks, version sets, tags, ... I have seen threads that say that tags will be preserved. Any idea if the stacks or version set

  • Record and Streaming playback

    Hi guys I am a newbie to FMS, got excited about it when I heard that Amazon cloud services are now including FMS for a marginal increase in cost. So all I am looking to do is: 1) Record off a web cam and store the video using FMS 2) Play the video st

  • Omit administrator permission for a certain application in windows 2012

    Hi Guys, How can i omit administrator permission for certain application in windows 2012 ? I have read that u can use process monitor and give the registry key sufficient permission but this sounds you can easily damage your machine, isn't there any

  • How to add video in i-tunes

    i just got my new 30GB ipod, and ive already done the converting of the video files to .m4v or mpeg4. The problem is that i somehow cant put the files into the i-tunes libary. I go to the video section and hit "add file" and nothing happens. When i g