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

Similar Messages

  • Finder behaving incorrectly with umlauts on UFS volumes

    On UFS formatted volumes it is possible to have filenames with accented characters (umlauts etc.) encoded in composed form. Such filenames cause incorrect behaviour in Finder. Steps to reproduce:
    * Create volume with UFS filesystem: *hdiutil create test.dmg -megabytes 5 -fs UFS*
    * Activate newly created volume (double click on it)
    * Chdir to mountpoint: *cd /Volumes/untitled*
    * Create filename with filename in composed form (\303\244 is composed UTF-8 form for the character "ä"): *touch `python -c 'print "\303\244"'`*
    * Open volume in finder and make sure it contains a single empty file named "ä"
    * Try to drag this file to the desktop - nothing happens. When in icon view mode it isn't even possible to change position of this file's icon.
    More details: For files created / renamed via the Finder, decomposed form is used and drag'n'drop etc works correctly. (It is even possible to have two different files in the same directory, both called "ä", if one file uses the composed form and the other file the decomposed form).
    Motivation: Using Subversion http://subversion.tigris.org in mixed environments with Windows and Mac OS computers leads to severe problems when the repository contains filenames in composed form and the working copy is checked out on a HFS+ volume (see http://svn.haxx.se/users/archive-2006-04/0841.shtml for detailled discussion). Using a UFS volume for the working copy works around these problems but leads to incorrect Finder behaviour as mentioned above.
    Is this a Finder bug that will eventually be fixed? Or is the fact that it's possible to create filenames in composed form a bug in the UFS implementation of Mac OS?

    Apple has had bug reports on the invisiblity plague for at least two years now. However, since it has actually gotten worse in Leopard than it was in Tiger I rather doubt they have a solution. Obviously, given the bug reports, they are working on it.
    The "@" just means the item in question has extended attributes. In my case ALL the volumes have an @, perhaps because they all have custom icons.
    Francine
    Francine
    Schwieder

  • 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

  • Creating list of folders from filenames with files organized in subfolders within

    Hi all. This is my first post in the Apple Support Community and I really hope that someone can help me as I'm using apple script for the first time.
    I have a list of hundreds of items that are each .jpg, .cr2, or .mov. Certain filenames have multiple extensions, ex: Q95A7170.CR2 & Q95A7170.jpg.
    I'm looking for an applescript or automator action that will allow me to create a folder out of each filename with 5 subfolders in it
    I need the subfolders to be called:
    AUDIO
    COLOR
    METADATA
    PICTURE
    PROXY
    In this instance I need all the .mov, .cr2, and .jpgs to be routed to the PICTURE folder. In later instances I'll need to route .mxf to PICTURE AND .xml .sif  & .thm to METADATA.
    So for example I have a list of that looks like this
    and I want a script that will make it look like this (i did all of this manually: creating the folders, renaming them, and putting the specific files into the picture folder)
    (not nearly a fraction of the list -- there are hundreds and hundreds of files)
    I've been researching applescripts for hours but the only script that i could make work and was very useful was this one to create the folders out of the names of the files:
    tell application "Finder"
              set selected to selection
              set current_folder to item 1 of selected
              set mlist to every file of current_folder
              repeat with this_file in mlist
                        set cur_ext to name extension of this_file
                        set new_name to text 1 thru -((length of cur_ext) + 2) of (name of this_file as text)
                        set new_folder to make new folder with properties {name:new_name} at current_folder
      move this_file to new_folder
              end repeat
    end tell
    Even with this script I had to manually copy all of the duplicate file named .jpgs out of the folder before it would properly run.
    Also I've found these scripts but I'm not sure what information to change. Like I said, I don't know much about code at all and I'm finding more research about it is just digging me deeper in a hole that I'm not entirely ready for.
    Here are the other two scripts that CLAIM they can do what I'm looking for, but I haven't gotten them to work.
    1.
    set pathToFolderOfTTUFiles to (path to the desktop as text) & "TTU:"
    tell application "Finder"
        set theFiles to every item of folder pathToFolderOfTTUFiles whose name extension is not "csv" and kind is not "Folder"
        repeat with theFile in theFiles
            set lengthOfExtension to (length of (theFile's name extension as text)) + 1
            set fileNameWithoutExtension to text 1 through -(lengthOfExtension + 1) of (theFile's name as text)
            set theFolder to make new folder at folder pathToFolderOfTTUFiles with properties {name:fileNameWithoutExtension}
            set theContentFolder to make new folder at theFolder with properties {name:"content"}
            make new folder at theContentFolder with properties {name:"archive"}
            set theContentDisplayFolder to make new folder at theContentFolder with properties {name:"display"}
            set theMetadataFolder to make new folder at theFolder with properties {name:"metadata"}
            make new folder at theMetadataFolder with properties {name:"archive"}
            set theMetadataDisplayFolder to make new folder at theMetadataFolder with properties {name:"display"}
            move theFile to theContentDisplayFolder
            set pathToCSV to pathToFolderOfTTUFiles & fileNameWithoutExtension & ".csv"
            if exists pathToCSV then move pathToCSV to theMetadataDisplayFolder
        end repeat
    end tell
    2.
    set myFolder to "FOLDERPATH"
    tell application "Finder" to set myFiles to folder myFolder's files as alias list
    repeat with aFile in myFiles
        tell application "System Events" to set {fileName, fileExt} to {name, name extension} of aFile
        set baseName to text 1 thru ((get offset of "." & fileExt in fileName) - 1) of fileName
        do shell script "mkdir -p " & (quoted form of (POSIX path of myFolder)) & "/" & baseName & "/{\"content\",\"metadata\"}/{\"display\",\"archive\"}"
        tell application "System Events"
            if fileExt is "pdf" then move aFile to (myFolder & ":" & baseName & ":content:display" as text)
            if fileExt is "csv" then move aFile to (myFolder & ":" & baseName & ":metadata:display" as text)
        end tell
    end repeat
    (the .pdf, .csv extensions are examples from the person who posted that discussion.)
    I tried using both of these codes but to no avail.
    Overall, this process is incredibly time-consuming and this is the first time I am using apple script so I know almost nothing about code.
    Also I don't know if this changes anything, but all of these files are on an external and I'm trying to save them back on this external.
    PLEASE HELP! I am a night assistant editor doing very tedious work at 3:00 AM or later and anything that would expedite this process would be so unbelievably appreciated. Please, someone who's more experience with code and who's smarter than I am on this topic, help me! I know there must be a way to automate this process!
    Please and so many thank yous! Really, this code would save me 40+ hours of eye-tiring work.
    Shelby

    This is how you'd do it in AppleScript.  I assume you can see how to expand it to different file extensions...
    set workFolder to "/path/to/folder"
    tell application "System Events"
      -- get files to work on
              set filesToProcess to files of folder workFolder whose visible is true
              repeat with thisFile in filesToProcess
                        set {fileName, fileExt} to {name, name extension} of thisFile
      -- get name of file without extension
                        set rootName to text 1 thru -((length of fileExt) + 2) of fileName
      -- make sure a correctly named folder exists
                        set targetFolder to my checkForFolder({parentFolder:workFolder, folderName:rootName})
      -- sort files into subFolders, making sure subfolders exist
                        if fileExt is "jpg" or fileExt is "cr2" or fileExt is "mov" then
                                  set targetSubfolder to my checkForFolder({parentFolder:targetFolder, folderName:"PICTURE"})
                                  move thisFile to targetSubfolder
                        else if fileExt is "xml" or fileExt is "sif" or fileExt is "thm" then
                                  set targetSubfolder to my checkForFolder({parentFolder:targetFolder, folderName:"METADATA"})
                                  move thisFile to targetSubfolder
                        else if fileExt is "mxf" then
                                  set targetSubfolder to my checkForFolder({parentFolder:targetFolder, folderName:"PICTURE"})
                                  move thisFile to targetSubfolder
                        else
      -- skip unknown file extensions
                        end if
              end repeat
    end tell
    to checkForFolder({parentFolder:fParent, folderName:fName})
      -- find or create a folder
              tell application "System Events"
                        if not (exists folder fName of folder fParent) then
                                  set output to POSIX path of (make new folder at end of folder fParent with properties {name:fName})
                        else
                                  set output to (POSIX path of (folder fName of folder fParent))
                        end if
              end tell
      -- returns a POSIX path
              return output
    end checkForFolder

  • Language:  Filename with characters for arabic turns question mark

    Language: Filename with characters for arabic turns question mark
    OS: Solaris 9
    Machine: Sun-Fire 25K
    There is an adobe distiller software that is configured and a java apps. There are postscript files that are being converted to .pdf format using the adobe distiller. Using the GUI (using the Exceed; for remote access), when they use GUI to convert the postscripts to pdf files, the long filenames have the corresponding characters for arabic reading purpose. This is OK.
    When we use the windows RUN to telnet the server and convert the postscripts to pdf, it gives a question marks characters in the filenames ( this; is a sample; filename; ?? ??? ??; right.pdf )
    We are not sure now if we have to add a package of arabic or a patch to resolve this problem.
    Message was edited by:
    yurioira32
    Message was edited by:
    yurioira32

    Solution found, I'll post the work around to those who might encounter the same problem.
    Somewhere in the layers of technology (webwork or weblogic I'd guess), the servlet response is encoded into UTF-8 regardless. The encoding in the database was ISO-8859-1. Sending ISO encoded bytes by UTF-8 caused the conflicting character codes (anything above 127) to show up as undefined.
    The fix is to decode the input byte array into ISO-8859 string, then encode that string into UTF-8, which can be send by Weblogic.
    isoConvert = new String(buf, "ISO-8859-1");
    out.write(isoConvert.getBytes("UTF-8"), 0, isoConvert.getBytes("UTF-8").length);

  • 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.

  • Filename with tab returned by getFileName()

    Our product uses JavaMail (1.4) to import mail messages from IMAP servers into our product.
    One of our clients is currently having a problem that sometimes attachments are not imported because they cannot be saved due to incorrect characters in the filename. Part of the reason is that we did not sanitize the output from Part.getFileName() (a MimeBodyPart in this case)
    We found out that in this case getFileName() returns a filename containing a tab (ascii 0x09), because (probably) their mailclient (Groupwise 7.0.2 HP) does not follow the intention of RFC 822 / 2822 (although it does conform to the letter of RFC 822) for the handling of long header fields. The mailclient has - as far as I can see - replaced a space in the filename by CR/LF and a tab (where I would expect CR/LF and a space).
    When JavaMail decodes the header this is (of course) decoded by replacing the CR/LF + tab by a tab, and getFileName simply returns the value of the filename parameter of the Content-Disposition header (including the tab).
    I would like to know:
    - Is there a system property to 'fix' this behaviour
    - Could you change the behaviour of getFileName() so it replaces any tabs in the filename with spaces (as far as I know there is no OS that allows tabs in filenames)

    Hi..thanks a bunch! The quotes did help. But there was another glitch. I could not store the existing file name in $oldfilename variable as only that part of the filename before the tab got stored. So wrote the filenames in the folder into a list file and then renamed one by one. Below is the code:
    for file in `ls $FilePath | sed 's/[     ]/,/g'`
    do
    echo $file >> $FilePath/"TabFiles"
    done
    ListFile=$FilePath/TabFiles
    for line in `cat ${ListFile}`
    do
    OldFile="$(echo "$line" | sed 's/[,]/     /g')"
    NewFile="$(echo "$line" | sed 's/[,]//g')"
    if [ "$OldFile" != "$NewFile" ]
    then
    mv "$OldFile" "$NewFile"
    fi
    done
    rm -f $FilePath/"TabFiles"
    I know the idea looks rather clumsy. Is there a better way of handling this?

  • Filenames with non-latin characters aren't found by the filesystem [S]

    This might be a bug, but I'm hoping it's just a config file problem.
    I have a few files here and there on my NTFS drive that have Japanese characters in their filenames.  Sometime recently (I don't have an exact date when they disappeared), they stopped showing up at all.  If I browse to a folder that used to contain filenames with Japanese characters, it just appears empty in Gnome.  Using ls from a terminal also says the directory is empty.  They used to work just fine, but a recent upgrade must have broken them.
    Does anyone have any ideas what I can do to get my files to appear again?  Is there some way to enable unicode support for filenames or something?
    Many thanks!
    Edit: Rebooting the system fixed it, though I still think that was a pretty strange problem.  Any ideas what was up?
    Last edited by ColdPie (2007-11-11 02:07:11)

    The funny thing is that bold font [when message unread in message list] shows OK, ie in greek, but when i click on unread message, it is assumed to have been read, so it changes over to medium [non bold] and the encoding changes as well into the one that is not greek and thus unreadable.  In ~/.sylpheed/sylpheedrc the fonts are:
    widget_font=
    message_font=-microsoft-sylfaenarm-medium-r-normal-*-*-160-*-*-p-*-iso8859-7
    normal_font=-monotype-arial-medium-r-normal-*-12-*-*-*-*-*-iso8859-7
    bold_font=-monotype-arial-bold-r-normal-*-12-*-*-*-*-*-iso8859-7
    small_font=-monotype-arial-medium-r-normal-*-12-*-*-*-*-*-iso8859-7
    In /etc/gtk, for gtk1.2 apps the file refering to greek encoding [el] seems to be fine [exactly the same as in slackware 9.1].

  • Problems with Filenames with Chinese Characters

    I seem to have problems with filenames with 2-byte characters like Chinese, Japanese and Korean in various apps. The problems occur when i download chinese music and import into iTunes :
    1. Torrent ( and all other ) files with 2-byte characters filename become junk characters in Finder after download from Safari.
    2. Music files created/downloaded by uTorrent displays 2-byte characters correctly in Finder.
    3. These downloaded music files when imported into iTunes becomes junk characters.
    4. Let say I wish to have a list of all filenames from (2). I do a ls -R > abc.txt in Terminal. abc.txt displays the filenames correctly in vi. However they become junk characters again when view using TextEdit.
    I've selected Chinese, Japanese, Korean in International setting. This is not about input method, just want to get the filenames correct in Finder and iTunes. Any advice is appreciated.

    3. These downloaded music files when imported into iTunes becomes junk characters.
    The ID 3 tags need to be in Unicode.
    http://homepage.mac.com/thgewecke/mlingos9.html#itunes
    4. they become junk characters again when view using TextEdit.
    TextEdit needs to be set to the correct encoding, it's not automatic.

  • 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
    ýýý

  • Filenames with unicode characters

    Hello, I have a question regarding filenames with unicode characters on an arabic windows xp.
    I have a string, which the user entered and want to create a file with this string as filename. So my question:
    Which unicode characters are allowed in a filename? I know, that on a german windows " / \ * ? < > : * are not allowed from the ASCII set, but which unicode chars are allowed? Is this language dependend on windows? Maybe there exists a method, which checks a string for this allowed characters.
    Thanks for your help

    AFAIK the illegal characters are always the same (you listed them already) and as long as the filesystem supports it (read: you use NTFS and not FAT) you may use any other unicode character.
    You might have troubles displaying those characters 'though if you don't happen to have the correct fonts installed, but that would only be a cosmetic issue.

  • 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

  • Change Filenames with blank spaces in the Filename

    I want to change many filenames with blank spaces and replace
    blank spaces with underbar character.
    Example:
    File One change to File_One
    File Two change to File_Two
    Here is my script:
    for file in `ls`
    do
    i=`ls -1 *" "*`
    b=`ls -1 *" "* | sed -e s/\ /_/g`
    done
    mv "$i" $b
    Please advise what is wrong with my script that isnt
    working. The script works if I only have one filename
    with a blank space. But if I have several filenames
    with blank spaces in the name then it doesnt work.

    I want to change many filenames with blank spaces and replace
    blank spaces with underbar character.
    Example:
    File One change to File_One
    File Two change to File_Two
    Here is my script:
    for file in `ls`
    do
    i=`ls -1 *" "*`
    b=`ls -1 *" "* | sed -e s/\ /_/g`
    done
    mv "$i" $b
    Please advise what is wrong with my script that isnt
    working. The script works if I only have one filename
    with a blank space. But if I have several filenames
    with blank spaces in the name then it doesnt work.

  • 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

Maybe you are looking for