Encoding issue for file manager

I am using the ditto command to duplicate a file. This file has unicode filename and as per http://developer.apple.com/qa/qa2001/qa1173.html I am first normalizing the name to kCFStringNormalizationFormD and then converting it to utf-8 before calling ditto on it. This all works smoothly but when I try to get the FSRef using the original unicode name I get fnfErr. Dosn't the API CFURLGetFSRef convert the string to kCFStringNormalizationFormD? Or is there any alternate for ditto on Tiger.

no encoding issues if i use xml (xlf or xliff) bundle as xml supports utf-8 encoding.

Similar Messages

  • How to set a root directory for file management in web application

    Is it possible to set a default root directory for file management for a web application ?
    We would upload some files and store them in the web server.
    When we write the uploaded files without any path, the files are written in the config directory into the jdeveloper embedded oc4j directory.
    When we write the uploaded with a relative path ("/somedir/filename"), the files are written in C:/somedir/filename.
    We would like that all file management with relative path into the web application refer automatically to a given root directory (for example defined in web.xml).
    Is it possible ?

    I'm using the standard upload in adf faces.
    The problem is not during upload. This is managed in a temporay directory defined in web.xml. The problem is for writing the file that was uploaded (upload give us an inputStream we have to write somewhere, eventually after unzipping).
    Here is an example of our current code.
    if (mimeType.equals("application/x-zip-compressed") |
    mimeType.equals("application/zip")) {
    File destZipFile =
    new File(rootDirectory + "/" + parametersDirectory +
    "/" + uploadedFile.getFilename());
    BufferedInputStream isZipFile =
    new BufferedInputStream(uploadedFile.getInputStream());
    FileOutputStream fosZipFile =
    new FileOutputStream(destZipFile);
    BufferedOutputStream bosZipFile =
    new BufferedOutputStream(fosZipFile, BUFFER);
    // read and write until last byte is encountered
    while ((currentByte = isZipFile.read(data, 0, BUFFER)) !=
    -1) {
    bosZipFile.write(data, 0, currentByte);
    }

  • Default directory for FIle Manager

    Hi,
    I am working on file manager for my final year project. I am using jsp, Tomcat and Linux as OS.
    The question is,
    "Is there any way to authenticate users from OS(linux or windows 2000) and how can i set user home directory(e.g. home/sahsan/) to my file manager default directory"
    I really appreciate if anybody help me in this regard. I am ready to read any article,tutorial or even any book chapter for this purpose. Coding Help will be best choice ;-)
    Thank you.
    Regards,
    Syed Ahsan

    I am not sure, i am in search of the code as well. pls let me know if u come across something. i will keep u posted if i know some.........
    Riz

  • Encoding issue for some languages

    hi,
    i am building multi-lingual adf application.
    i am using resource bundle (in properties file) to store all translation.
    i am running into a strange issue, on 1 of the server (my local one running on windows), languages appear properly.
    on another (dev box running on unix), some languages giving encoding issues.
    where to check? any suggestions?
    thanks.

    no encoding issues if i use xml (xlf or xliff) bundle as xml supports utf-8 encoding.

  • Using OEM for file management

    Is anyone using OEM to manage files on their clients?
    We currently have a bunch of scripts that distribute certain files to certain systems based on system criteria, such as OS version, system "usage" (ie oracle DB, backup server) etc.
    I was looking @ OEM Deployment Procedures as something that might help with this. I didn't see a premade "file distribution" procedure, though, so I would probably have to write my own somehow.
    I'm also open to using Ops Center or some other plugin that might be more suited to this task.

    I am going to assume that you are using EM 12c. Let me know if this is not true.
    Deployment procedures (DP) is the ideal solution for this. There is no out of box DP for file transfer because it is extremely easy to create one. You have two options:
    1. transfer files from one server to another (using the file transfer step in DP)
    2. upload files to EM software library and then transfer them to different hosts (using the component and directive step in DP)
    Useful links:
    http://docs.oracle.com/cd/E24628_01/em.121/e27046/part_dp.htm#CCHJBDFD
    https://apex.oracle.com/pls/apex/f?p=44785:24:0::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5787,1
    https://apex.oracle.com/pls/apex/f?p=44785:24:0::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5788,1

  • Role Assignment Discovery Issue for Files and Folders through Sharepoint REST services

    To preface, I am a decided Sharepoint newbie in every sense. I am trying to use the Sharepoint REST services (Sharepoint 2013) to walk the folder and file structure of my Sharepoint server and, determine as I go, the Role Assignments (and subsequently
    Permissions) on those folders and files. I'm using an Administrator credentials and I'm actually able to successfully do it but I've run into some caveats. All the caveats begin with this; when I'm examining a folder, for example:
    /_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/ListItemAllFields
    I receive either an empty list or an error response doc when following the link supplied for ListItemAllFields.  When following that kind of link for folders, I either get:
    <d:ListItemAllFields
    m:null="true"
    />
    or an error response document that says "The object specified does not belong to a list." When I hit the /ListItemAllFields endpoint for files, I receive a response with a link for Role Assignments which subsequently also works and I get the
    info I need. So, is this a bug? Why does the link returned from Sharepoint work for files and not folders? So, google, google, google, and I discover that there is another possible way to get at the Role Assignments (and that the object does, indeed, belong
    to a list!).
    If I know the Title (or the guid) of the folder in question, I can use the following endpoint:
    /_api/Web/Lists/GetByTitle('Development')
    If I use that endpoint, I get the information I would have expected to get from following /ListItemAllFields and the subsequent Role Assignments links all work and I get what I need. If there's a bug and this is how I have to work around it, that's fine
    but I have yet to discover how to dynamically determine the Title of a given folder nor am I sure if all Titles are supposed to be unique within a given Sharepoint server. I'm assuming that the folder name as represented in the server relative URL and the
    Title may be different and this is where my newbishness may start to shine if I'm misunderstanding what a "List" is supposed to be in Sharepoint. Anyway, I did find that I could use the Properties endpoint to perhaps get the Title, for example:
    /_api/Web/GetFolderByServerRelativeUrl('/sites/cmisdev/Development')/Properties
    gives me:
    <d:vti_x005f_listtitle>Development</d:vti_x005f_listtitle>
    whose value I assume I could then supply to the /GetByTitle endpoint and be golden. However, "vti_x005f_listtitle" just sounds a little too deep to be something I should be relying on but maybe that's kosher. That's part of what I'm trying to
    find out. Also, if there is a way to use the Sharepoint REST API to discover the guid of a given object, then I could look it up in that way.
    So, in summary:
    1. Am I going about getting folder Role Assignment information in the wrong way? Based on the CSOM examples I've seen, I believe I'm doing it correctly and that the answer to #2 below is a resounding "Yes!" :)
    2. Is it a bug if I'm not able to use /ListItemAllFields on folders using the server relative url?
    3. If I'm supposed to use GetByTitle as a workaround, am I discovering that Title correctly through /Properties? Seems quite circuitous and awkward. Are Titles required to be unique throughout a given Sharepoint server?
    4. If I'm supposed to use the guid, how can I use the REST interface to discover an object's guid? Once we get down to the Role Assignments and other links, the guid appears in those links but I don't know how to discover it independently if that's the
    path I should use to get the data I described above.

    Upon further research, I'll answer my own question for the benefit of some other potential future newbie.  The answer to question number 1 above is "Not exactly.".  The server relative URLs I was using corresponded to lists (which are
    returned as a collection through /_api/web/lists).  I was treating them mentally like regular folders.  That, coupled with the fact that accessing their data as I showed above returns a ListItemAllFields link, made me think that was the way to get
    the Role Assignments just as I would for files and, as it turns out, "real" folders and sub-folders created under these lists.  That was the other problem with thinking of these lists as regular folders.  So, ListItemAllFields works on
    all files and folders in a list.  However, if you want Role Assignments for the lists themselves, you can keep track of the Titles and\or Guids from the /_api/web/lists that you're interested in (in my case, all non-hidden "document library"
    type lists) and then access those Role Assignments as I discussed in questions 3 and 4 above.  For example, from the /_api/web/lists collection from my test server, the "Development" document library Role Assignments are accessable via /_api/Web/Lists(guid'cd242eeb-aafa-4efa-aecc-9bbdf8e3d459')/RoleAssignments
    or /_api/Web/Lists/GetByTitle('Development')/RoleAssignments.

  • UTF encoding issues on file adapters and mappings

    Hi,
    We did some tests regarding to UTF-8 and UTF-16 encoding using file adapters. Our conclusion so far is (when using Windows OS):
    1. Inbound adapter can handle UTF-8 and UTF-16 correctly, but do not specify the encoding!
    2. XI mappings will set the XML encoding to UTF-8 correctly when sending an UTF-16 file to XI.
    3. Outbound adapter can only handle UTF-8 (and US-ACSII and ISO-8859-1) correctly.
    The exact test results are:
    >>Outbound file adapter bug.
    If no encoding is specified in the outbound file adapter, UTF-8 and UTF-16 are handled correctly. However if the encoding is set to UTF-16, XI mapping will fail with the error:
    During the application mapping com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    Part of the trace:
    com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) a0d, a0d, 6e3c(:main:, row:3, col:2) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:78) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest
    >>Inbound file adapter bug.
    If the encoding of an inbound file adapter is set to UTF-16 everything works ok (except the XML encoding is not set correctly, but this may be a mapping issue and not an adapter issue). However the default UTF-16 encoding seems to be UTF-16BE, where I would expect UTF-16LE since this is the most commonly used encoding.
    If the encoding UTF-16LE or UTF-16BE the characterset used in the message is correct, except the BOM of the file. The BOM is empty which means UTF-8 encoded file. Since the file is UTF-16BE or UTF-16LE encoded, this is wrong and the correct BOM should be added by the adapter.
    Encodings like US-ASCII and ISO-8859-1 are handled correctly.
    >>Mapping bug
    When we send in a message encoded in UTF-8 and want to send it out as a UTF-16 encoded message, we need to set the XML encoding to UTF-16. Normally this is done by an XSLT mapping using the <xsl:output encoding=”UTF-16”/> command.
    The UTF-8 message will get processed by the XSLT and any special character will be converted to its UTF-16 value. However the output message is not UTF-16 encoded (1 byte in-stead off 2 bytes).
    When this 1 byte message is send to the inbound adapter (encoding is set to UTF-16) the message will be translated from 1 byte to 2 byte (UTF-8 to UTF-16). The characters that were converted from UTF-8 to UTF-16 will be read as single byte characters and will be converted again. This will result in an incorrect message with illegal characters.
    So basically characters will be converted to UTF-16 2 times, which is incorrect.
    Maybe someone can confirm this on another XI system (maybe different OS). If you need test files or mapping, please let me know.
    Kind regards,
    Christiaan Schaake.

    Update after carefully reading all the UTF related documents on the internet.
    For UTF-16 the BOM is required and the adapter is handling this correctly. (encoding=UTF-16 will create the BOM).
    For UTF-16LE and UTF-16BE the BOM must not be set. The application should be able to handle the conversion. The adapter is working correct again.
    If the adapter is set to binary mode in stead of the text mode, the file will always be read correctly.
    About the mapping issue, I'm still experimenting with this one.
    Kind regards,
    Christiaan Schaake.

  • Should a graphic designer use Iphoto for file management ?

    I am a designer who is overwhelmed by too many images from different sources (scan, online, art, photos) that need to be organized by themes (animals, flowers, calligraphy, projects, etc) so I tried transferring all my ps and tif and jpg files into iphoto (hoping to avoid using bridge, which I don't like).
    I noticed after I drug some them into iphoto, I reopened them in PS (drug file to the PS software Logo in dock), all the layers were had been flattened and the file went from 600 dpi to 72! EEEEK!
    I am a graphic designer and need large files with layers. Is iphoto a bad way to organize images? The orginal reason I like iphoto is because you can just drag out a file, and the original remains. In bridge, the original actually MOVES OUT.
    (I posted this in the wrong forum before, so this is a repeat posting)

    kidquotes:
    I would seriously look into a more robust DAM (digital asset management) application. The one that I use is Media Expression. It allows you to manage your folder system, move image files between folders from within the application, rename files, add metadata and write them to the files so they travel with them.
    Go go The DAM Forum where professional photographers discuss the various DAM applications and their relative merits, etc. Expression Media was originally iView MediaPro and, at the time, was consdered one of the very best. EM was bought by Microsoft (ugh) but has evolved into am improved product but is more expensive.
    As far as the dpi the resolution didn't change. iPhoto displays all at 72 dpi but if you were to look at the file in Photoshop it's print size would be nearly 9 times larger. It's all relative. SeeThe Myth of DPI.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Best Practices for File Management

    I just wrote post about how I use Lightroom, Dropbox, and Crashplan to manage my photos.  I'm curious if anyone here has a critique for my approach.  I'm not a "pro" by any measure, so I'm not sure if this is a good approach, or if there are better ways to accomplish the same thing.  In general, I just want a highly reliable, low pain workflow for keep track of my files.  Thanks for any feedback you have!

    Looks good - I run an almost identical system for my personal photos, using the same programs.

  • Lookup issue for File to Idoc scenario-- Urgent Pls.

    Hi All,
    Iam doing File to IDoc scenario with one file --> any of 3 R/3 systems.
    Routing has to be done dynamically using a lookup file, based on the incoming GLN code and last character of the Order Reference number.
    The last character of the Order ref Num will have A,B or C.
    Where,  ' A'  for  R/3 152 Client
                 ' B' for  R/3 142 Client
                 'C'  for  R/3  132 Client.
    1. PlantGLN_Routing lookup file :
    DestinationSystem,   Plant GLNCode,       Partner Number,  
    A,                            5000243000473,         GDKDVRC152,     
    B,                            5000243000473,         GDKDVRC142,      
    C,                            5000243000473,         GDKDVRC132,      
    A                                 500034000487           GDKDVRC152,     
    B                                 500034000487           GDKDVRC142,     
    C                                 500034000487           GDKDVRC132,
    By Using DestinationSystem and Plant GLN Code as lookup key --> I need to get the value of partner system.
    2.  IdocCtrlLookup
    Purpose: To read the IdocCtrlLookup file to populate the Idoc control segment
    Now based on the partner system from previous table --> I need to get the details of Sender Port , Sender Partner Type , Sender Partner Function , Sender Partner Number , Rx Port , Rx Partner Type , Rx Partner Function , Rx Partner Number.
    Please help me how can acheive this scenario with the help of lookups.
    Its very urgent.
    Regards
    Krupakar.

    HI,
    Here you would have to use one mapping for dynamic routing , based on this create IM and use it in receiver determination.
    the another mapping is general to file to idoc.
    see the dynamic routing link here
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping -
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Also if you know the field name the context object can be defined for partner no that can be used in receiver determination in condition. to particular partner no in receiver determination.
    Regards
    Chilla

  • Column Encoding issue for user spreadsheet import via Wizard

    Hi,
    I'm trying to build an upload page for users, they should be able to upload spreadsheets into one of the tool's table.
    I have built a "Data Load Page" via the Wizard on apex.oraclecorp.com which created 4 pages : data load, data/table mappings, data validation and data load results.
    I do receive the correct mappings, however because some characters are double byte, hispanish and so on, I do receive weird characters in my rows. This data looks well in CSV (I save it in txt first as unicode text). Is there a way that I can force apex to grab my import and see char encoding as little endian?
    Thanks and regards,
    Diez

    Hi again,
    Are there no solutions for this?
    I would simply like to make available to the user an option where he can change the character encoding (like UTF-8, little endia, big endian, western european windows etc) or make it little endian by default.
    If this is not possible I'm open to any suggestions.
    Thanks and regards,
    Diez
    Edited by: 837311 on Dec 16, 2011 5:26 AM

  • Looking for "file management" program

    All,
    I am a collector of hundreds and hundreds of magazines, articles, etc. In recent times, I've been scanning articles from magazines and school books to digitize them.
    I'm looking for a program that will allow me to "tag" files and file them accordingly (sort of like del.icio.us).
    Any ideas?
    Thank you,
    Lindsay

    LindsayB63,
    Well, other than third-party software (and you have already received at least one recommendation there; will probably receive several more), a few things come to mind.
    Off the top of my head, you could "tag" the resultant files with comments, or at least creative names, place them all in a central library (perhaps sorted into folders alphabetically or otherwise), then create a collection of "Smart Folders" to sort/show them according to specific criteria. You could have "standard" smart folders that are persistent, or you can use Spotlight at any time to create an "off-the-cuff" search for a particular criterion, or criteria.
    In the end, your searches will only be as good as the system you develop when adding comments/keywords (given that your scans are probably images, not the results of OCR software). Which brings up another subject. If searching this content is important enough, you might want to invest in good OCR software, to convert the scanned images to real text. This text could then be searched directly, instead of second-hand via your comments and keywords.
    Scott

  • File Manager Issue on Z10

    Anyone else having this issue - my File Manager started appearing blank and I can not view any of the folder (files) and can't change between my SD card, Box accoutn and Device.  It was working no problem up until a couple of days ago. I tried resetting my Z10 and still no luck.
    Hoepfuylly someone can help.
    Thanks.

    It appears that my SD card is corrupt - it was causing the issues.  I removed it and had no problems with it. So looks liek the OS is fine.

  • File management advice for iphoto avoiding space issues

    I've just returned form a full OS crash and want to rethink my workflow approach.
    I have about 50Gb of RAW & Jpeg files to re import. This will not rise more than 20% over the year. Before switching from PC to MBP I used Adobe Bridge/CS for file mgt & editing. But on switching to Macs last yr I got soon sucked in by the simplicity of iphoto. Sure, it's toy like but it's **** food at what it does and if you're just intermediate dslr snapper like me with limited time, it's okay.
    BUT before I go back to it, and quickly run out of space - can someone advise on best workflow/storage option considering I don't want to invest in Aperture or others.
    So what shall I do?
    1) Keep my entire collection on on an external drive (with additional DVD backup for safety) and keep another smaller library of recent stuff on the MBPro (thus using 2 libraries with Library Mgr http://www.fatcatsoftware.com/iplm/). Is this safe? Any issues or guidance?
    OR
    2) Use Adobe Bridge to manage raw files and only import the final jpegs into iphoto for browsing showcasing etc. This would help keep the duplicates down in iphoto
    Any ideas welcome.

    James
    I would go for option one - multiple libraries managed with iPhoto Library Manager. IPLM will also help you move files between libraries. I see no safety issues. I can see no advantage to using iPhoto for one set up and Bridge for the other. I always think you should keep things simple.
    Regards
    TD

  • Has anyone had a problem with TapMedia File Manage on iPhone 5. I reported a WIFI functionality problem to the developer and asked for support. Instead they have been very unprofessional by name calling me instead of logically evaluate and troubleshoot th

    Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem

    Hi AKE1919,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

Maybe you are looking for

  • HTC 8x win 8.1 update fails

    I have tried twice to update my HTC 8x to windows 8.1.  On both occassions the download was successful and the phone went through one restart, then the graphic of the two gears ran for a couple of minutes, then a message was displayed saying that the

  • How to backup files from other user logged in as administrator

    RE: How to backup files from other user logged in as administrator AND/OR how to repair drive with "Invalid catalog PEOF" Hello, My MacBook Pro computer's hard drive is not booting. I booted with the base operating system and ran Disk utilities and I

  • Data Retractors from BPC 7.5 to ECC 6.0

    We are looking for customers who can share infomation that have successfully built automated data retractors from BPC 7.5  to ECC  6.0. There is one whitepaper titled "How to... Retract data from BPC 7.5 NetWeaver to SAP ERP Cost Center Accounting, P

  • Contact not displaying in the list of contact

    HELP. My phone suddenly stop displaying the full list of contact in dialing mode. But I could find/see the full contact list when texting people. can someone help me?

  • "Locking" layers view in InDesign

    I'm not even sure how to describe this, so forgive me if there's something out there than answers this question. I work with layers in both photoshop and illustrator quite a bit, mainly because I work with things that have displays and those displays