6 Replies Latest reply on Nov 3, 2010 9:29 AM by Kamrun.

    CS5:JS:Extended ASCII Chars in File-path. How?

    Kamrun. Level 1

      Hi all,

       

      I have a script for setting the content of image frame like :

       

       

      anXMLElement.setContent(File("/Users/MyName/Desktop//MyFileNameWithö.jpg"));

       

      if the file name contains extended char like "ö" by running the above script I'll get exception says" file cannot import or doesn't exist in the path"

      Can someone help me how to handle the path for this case?

       

      P.S I pass the fullpath to the piece of script that was calculated in GUI, in above script i directly used the path to show how it looks like when executed.

      I used "\" in front of those special chars, but didn't help

       

      Thanks,

      Kamran