Desktop.open can not open the file with unicode letters in the path?

String filename = "/home/wenkai/received/测试.txt";
try {
     File file = new File(filename);
     Desktop.getDesktop().open(file);
     } catch(IOException ex) {
          ex.printStackTrace();
          return;
     }"测试" is just Chinese word. Now, I am using Ubuntu7.10, Gnome2.20.1, system environment setting is LANG="zh_CN.UTF-8", and java version is 1.6.0.
My system will open text file using gedit application, but when I run the code above, "file:/home/wenkai/received/测试.txt:file name or URI format error." printed in console and gedit open an temp empty file.
Do I need to encode the file path? I have tried URLEncoder.encode(String, String), but it dose not work.

RGold1963 wrote:
…would like to be able to do that with CS5 as well…
I understand that, of course.  But since I don't do windows, the above is all I can offer. 
Wo Tai Lao Le
我太老了     

Similar Messages

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • Can NOT cancel/Reverse GI with a date before the actual GI date

    Hi
    can NOT cancel/Reverse GI with a date before the actual GI date, if i do the PGI in wrong date, then how should i do?
    thanks

    >
    jo jo wrote:
    > Hi
    >
    > can NOT cancel/Reverse GI with a date before the actual GI date, if i do the PGI in wrong date, then how should i do?
    > thanks
    Hi Jo Jo,
    I am not sure if i understand your problem correctly.
    As far as my understanding goes you are trying to reverse a GI on a date before Actual goods issue date.
    If you have PGId on a date before planned GI date the system will update that date into Actual GI date and not planned GI Date.
    For example if you planned GI date was 1st April 2008 and you did PGI on 28th April 2008 Actual GI date will become 28th April 2008.
    So if you try to reverse PGI before 28th April you wont be allowed to as you cannot reverse a goods issue that has not happened.
    Hope it helps.
    Post furthur if i had misunderstood your problem.
    Regards
    Abhishek

  • Can not print pdf file with firefox 29.0 pdf preview plugin. Why?

    Can not print pdf file with firefox 29.0 pdf preview plugin. Why?

    Control V doesn't work here for a screenshot.

  • Mini will open to desktop but can not open any apps

    We can get the Mini up to the desktop, but it will not let us open any apps or shutdown. I can not remember what version of OS I have and can not open information about the Mini.

    Does the mouse seem to be working?
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.

  • Can not play iMovie file with PC

    When I play a video file exported from iMovie in Full Quality (HD AIC), then I can play this file in QT on my MAC. When I like to play the same file on a PC, I get a blank screen. Is de AIC missing in the PC version of QT ? How can I solve this problem ?
    Powerbook G4   Mac OS X (10.4.8)  

    Try this:
    http://www.maclife.com/article/howtos/how_export_contacts_address_book_pc
    Hope it helps.

  • Can not activate iPhone 4 with other GSM carriers, the iPhone was bought in Apple Store in Dec'2010

    Hi, I bought one iPhone in Dec, 2010 in Palo Alto Apple Store and tried to use it in Asia, but failed. The iPhone cannot activate the SIM card. Any ideas? The iPhone was bought at $599 for 16G version, so I assume it is unlocked version already? Thanks a lot in advance!

    Apple didn't start selling unlocked iPhones in the US until June of 2011. Your phone will still be locked to AT&T. AT&T does not provide unlocking.
    Stedman

  • Dynadock V10 - " error can not find installation file" INSTALL ERROR

    Hi I have a toshiba dynadock V10.
    Every time i try to install the drivers it says " error can not find installation file". I have downloaded the latest drivers and switched off my anti virus and shut off all running proiceses and no go. There are a few references to this on the internet but none has a solution.
    I amn trying to install it on an equium U400 running windows 7.
    Funnily enough it loaded on an old dell pc easily!
    I have spent hours searching the net and there is no answer. I dont have anything showing in programs to uninstall.
    Thanks

    >Funnily enough it loaded on an old pc easily!
    Hi
    This means that drivers are ok and there must be something wrong with the system preinstalled on Equium U400.
    How did you proceed?
    Its important that you would NOT connect the Dynadock to the notebook before the drivers and software installation has not been finished.
    Therefore you have to install the software firstly. Then after new reboot connect the Dynadock to the notebook and the installation would finish the next steps.

  • I can not sync my phone with this Macbook Pro

    I had a nasty suprise I paid out over £1500.00 to be told that I can not sync my phone with this Macbook Pro.
    the reason for buying a Mac is that the windows 7 machine is in little bits so how do I sync that.  there is no music on this Mac pro and if I try to sync my phone it wants to wipe my phone That is Pants!
    <Re-Titled by Host>

    FTFY (for readability):
    "I had a nasty surprise, when after having paid out over £1500.00, I learned that I am unable to sync my phone (unidentified model) with my new MacBook Pro (unidentified model).
    The reason I bought the Mac was due to the fact that my former computer, a Windows 7 machine, has been damaged beyond repair.
    There is no music currently loaded onto my new Mac, and when I try to sync the data on my Mac to my phone (unidentified model) I am prompted with a warning that my phone data will be wiped clean. This is not good!"
    Okay, so I'm just being a little cheeky here - no offense intended.
    Details are always best when seeking assistance, however. Try not to make others do the work for you. Take the time to do it yourself.
    What model of Mac do you have?
    What version of OSX are you using?
    What version of iTunes are you using for syncing purposes?
    What model of phone are you using and what software version is installed on it?
    Try to better articulate the steps you are performing and the warnings that you are encountering.
    Best of luck.

  • Process.start("winword", filename) can not open file with space in the path and name

    Hi,
    I am trying to write a class which can open file with selected application. for simplicity, now I just hard code the varaibles.
    the problem: if the path or file name has space in it, even it exist, winword still can not open it.
    could someone kindly show me what I did wrong and how to do it properly.
    Thanks in advance.
    Belinda
    public static class FileOpen
    public static void info()
    string path = @"c:\a temp folder\aaa 1.txt";
    if (File.Exists(path))
        // the file I am using in the sample does exist
         MsgBox.info("yes");
    else
         MsgBox.info("no");
    // working
    //Process.Start("winword", "c:\\aaa.txt");
    // not working
    //Process.Start("winword", "c:\aaa.txt");
    // not working
    Process.Start("winword", "c:\\a temp folder\\aaa 1.txt");
    // not working
    Process.Start("winword", path);

    string AppPath;
    AppPath = ReadRegistry(Registry.CurrentUser, "Software\\FabricStudio", "TARGETDIR", value).ToString() + @"help";
    string FileName = "'"+ AppPath + "\\ImageSamples.doc" + "'";
    try
    System.Diagnostics.Process.Start("Winword.exe", FileName);
    can any body please help for this.
    where i am making mistake?

  • I recently upgraded to a G5 and Logic Pro 8. My previous system was a Power Mac 7200 with Logic Platinum 3.5.3. I can not open the old song files unless they are first saved in Logic 6 or 7. Where do I get a dongle for Logic 7?

    I recently upgraded to a G5 and Logic Pro 8. My previous system was a Power Mac 7200 with Logic Platinum 3.5.3. I can not open the old song files unless they are first saved in Logic 6 or 7. Where do I get a dongle for Logic 7?

    eBay or Craigslist would be the only choice.

  • I can not open files created in iWork 6 or iWork 8 with pages 5.2. I removed the older versions and emptied my trash.  what to do?

    i can not open files created in iWork 6 or iWork 8 with pages 5.2. I removed the older versions and emptied my trash.  what to do?

    Reinstall iWork '08 which can export to Word .doc/x files.
    Peter

  • I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    Dear Ones,
    I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    see if this is helpful : [http://support.mozilla.org/en-US/kb/Opening%20PDF%20files%20within%20Firefox Opening PDF files within Firefox]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273

  • I have received a .xlsx (excel) file.  It is also ziped and I can not open it.  I also have the same problem with .csv files.  I can not open them either.  How do I get them open.  Thanks.

    I have recived via an email attachment a .xlsx (Exel) file which is also zipped.  I can not open it.  I also can never get .csv files open.  How do I overcome these two problems?
    Thanks,
    sorsini

    drag it to the Desktop.  double-click it to unzip it.

Maybe you are looking for

  • How do I add a FullScreen button to Project Playback Skin?

    How do I add a fullscreen button to the project playback skin? I know how to load another skin (using Project -> Skin Editor) and how to add a custom playback skin (paste custom skin SWF into C:\Program Files\Adobe\Adobe Captivate 5\en_US\Gallery\Pla

  • Set List Manager Values

    I use a List Manager (based on Popup LOV) in a form. On submit, I insert the list manager values by creating a array using the wwv_flow_utilities.string_to_table function and inserting the values one by one in a loop. I would need to be able to set t

  • Inserting password for airport base graphite network

    I have an iBook G3 500 of seven years vintage, and recently bought an airport card and a graphite airport base on eBay. It's working fine as a domestic network, but it has simply the name of the person who sold me the airport base as its name, and no

  • The date and time is not working after setting it to current date and goes back to may,26 2011

    the date and time is not working after setting it to current date and goes back to may,26 2011; 2 PM . I bought my ipod tocuh 4th gen on july 18th

  • Browser showing all the outside of the artboard stuff

    Hi guys, Just wanted to ask why the browser shows all the outside-of -the -artboard stuff I cut off in Photoshop? How to get rid of it? I cut off all the unnecesary things in Photoshop but Catalyst is showing that, and when I hit Cmnd Return so does