Bug when getting file path in non-english Windows Vista

Hello,
I'm getting an error when trying to get the file path of a video in a non-english Windows Vista... The code is:
var file = "video.flv"
var filePath = air.File.applicationStorageDirectory.resolvePath(file);
filePath = filePath.nativePath;
The filePath variable is used later by a flash video player to load the video file..
In the brazilian Windows Vista the path of the StorageDirectory would be something like "C:\Usuários\(user name)\..." but if I run this script it returns "C:\Users\(user name)\..." as the native path.
The problem seems to be in the "nativePath" function, cause I'm able to copy files to the app-storage folder using the "air.File.appicationStorageDirectory.resolvePath()" method without any problems.
I could insert a small code which substitutes "Users" with "Usuários" but then it wouldn't work on an english Vista...
Any ideas on this? Is there a way to check the language of the operating system in Air so to act accordingly?
Thanks for any help!

Hello,
has anybody found a solution?
Testcase: SQL Developer 3.1 on a German XP with default NLS Settings
CREATE TABLE "TEST_TABLE"
       "NUM" NUMBER
      ,"VCH"  VARCHAR2(10 BYTE)
    ) ;Test file test_insert.dsv
num;vch
1;KL
1,5;tz
12345,45;ooImporting using the wizard inserts the first row correctly, for the others I get
SET DEFINE OFF
--Einfügen für Zeilen  1  bis  3  nicht erfolgreich
--ORA-01722: invalid number
--Zeile 2
INSERT INTO TEST_TABLE (NUM, VCH) VALUES (1.5,'tz');
--Zeile 3
INSERT INTO TEST_TABLE (NUM, VCH) VALUES (12345.45,'oo');Beside the wrong umlaut in the message the insert statement itself is correct, because you cannot use the german decimal separator "," in the script. The bug is, that it should use the same NLS settings for generating and running the script.
Regards
Marcus

Similar Messages

  • Error code -43 - unable to get file path when burning DVD

    I just installed Tiger on my son's iMac 500. Borrowed a Lacie DVD r/w and tried to burn the contents of a user folder to a DVD-R. It burned part of it, but failed with the following error:
    The operation can not be completed because one or more
    required items an not be found. (Error coed -43).
    Could not open the dat fork of "<unable to get file path>" (-43).
    I was able to burn a CD on the drive, but that was for another user directory that fit on a CD-R. The folder I was trying to burn to the DVD was about 1.1 G.
    Thanks,
    Alfredo

    I just installed Tiger on my son's iMac 500. Borrowed a Lacie DVD r/w and tried to burn the contents of a user folder to a DVD-R. It burned part of it, but failed with the following error:
    The operation can not be completed because one or more
    required items an not be found. (Error coed -43).
    Could not open the dat fork of "<unable to get file path>" (-43).
    I was able to burn a CD on the drive, but that was for another user directory that fit on a CD-R. The folder I was trying to burn to the DVD was about 1.1 G.
    Thanks,
    Alfredo

  • Apple, when an update for none english windows users ?

    Apple knows about that problem for over 10 days now but nothing yet.
    I'm in Montreal and all none english windows users are unable to "unlock" their new ipod and get that USB cable and itune Icon display.
    Come on Apple, are you becoming as bad as the PC and windows world.!
    If you guys could post here which country and language you have problem with. Thanks.
    _*Canada, QC, French*_.

    Looks like people using none english windows experience the same problem when they try to config for the first time their Ipod touch. You're gonna be able to connect to your computer to load songs and movies but when come the time to disconnect your device, the Ipod is gonna display (even disconnected from your computer) a screen with an USB cable and an itune icon. The result is that you're gonna be unable to turn your Ipod really on and listening the content of it.
    People in Japan, germany, France, etc... had the same problem because of none english windows setup.
    Good luck... My Ipod still doesn't work.

  • EvtFormatMessage function fails with error code 15033 (ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND) on non-English Windows OS

    I have an App which subscribes to Windows events and if it is matching the filter criteria, it reports it.
    I have observed a strange problem on non-English windows 2008 OS. 
    If the Windows event is of source = EventLog (e.g. Event ID 1102: Security log was cleared), then EvtFormatMessage fails with error code 15033. But if the event is of any other source (e.g. Microsoft Security Auditing), then it works absolutely fine.
    While calling EvtOpenPublisherMetadata, I have created locale ID as MAKELCID(MAKELANGID(0x09,0x01) i.e. Primary language = LANG_ENGLISH and Sub Language = SUBLANG_DEFAULT.
    I want events details in English only and hence primary language is put as English. If I change this macro to have primary language as LANG_CHINESE and sub language as SUBLANG_CHINESE_SIMPLIFIED, then it works fine but gives back event details in native
    OS language (Chinese in this case). That's not a desirable output for me.
    Following is the way I'm calling EvtFormatMessage 
    EvtFormatMessage(hMetaData, hEvent[0], -1, 0, NULL,
                                   1 /* EvtFormatMessageEvent */, 
                                   m_pTextBufferSize/sizeof(WCHAR),
                                   m_pTextBuffer, &dwBuffUsed);
    A work-around for this is to install a MUI pack for English language. If the MUI pack is installed then it works fine. But I cannot enforce users to have this pack installed on all their systems.
    My question is  why this API is working for some set of Events whereas failing for some specific Events? Am I doing something wrong?
    Any help would be appreciated.
    TIA,
    Regards,
    Yogesh
     

    Was on vacation and hence the delay in replying.
    As mentioned earlier, while calling EvtOpenPublisherMetadata, I have created locale ID as MAKELCID(MAKELANGID(0x09,0x01)
    i.e. Primary language = LANG_ENGLISH and Sub Language = SUBLANG_DEFAULT.  If I change this macro
    to have primary language as LANG_CHINESE and sub language as SUBLANG_CHINESE_SIMPLIFIED, then it works fine but gives back event details in native OS language (Chinese in this case).
    This is not an option for me as I want event details in English language only.
    Regards,
    Yogesh
    Regards, Yogesh

  • How to get Zen Touch to work on Windows Vista without PFS (worked!)

    CHow to get Zen Touch to work on Windows Vista without PFS (worked!)? ***THIS WORKED***
    For all of you that want to get their music out of the Zen touch, and are stuck with Vista and .0.03 firmware (non vista recognisable), and don't want to erase everything by installing the latest firmware, here is what worked for me:
    )Uninstall every piece of Touch software you got and reboot.
    2) Download the latest drivers from Creative: JB3MV2...exe, together with the latest Nomad explorer, and the latest Notmad explorer from Red Chair (a trial is enough, version 9.0.3 currently).
    3) Right click the driver, properties, go to compatibility mode, and select Windows XP SP2. Make sure your Zen is unplugged (worked for me that way). Right click the driver installer again and Run as Administrator. It hanged around 72% for me, no biggy, open your task manager and shut the installer off.
    4)Before rebooting, install Notmad explorer.(I installed only the Zen touch part of it. I tried to run it right away but got a 'cannot find explorer.exe error - again, no biggy).
    5) Reboot, plug in your Zen. Again for me, Notmad didn't work. This is what worked: Without messing up anything, install Nomad Explorer by Creative on top of it all, and reboot again.
    6) After reboot, with your Zen still plugged in, right click the little Notmad icon on the right part of the taskbar and select 'Connect Jukebox Zen'. And voila, check your explorer, it should hopefully recognise the Zen Touch like windows xp would.
    If you still run into trouble, just install stuff from the beggining, making sure Compatibility: WinXP SP2 and Run as Admin are used everywhere, and keep rebooting till it hopefully works.
    Best of luck. edit: Using Winamp to transfer files worked as well.

    Hi D2xS-Shooter,
    I am afraid Creative Cloud desktop app is not compatible with Windows Vista. If you run into problems there are very limited resources from Adobe to assist.
    Creative Cloud is a collection of apps with various different tech specs
    http://www.adobe.com/uk/products/creativecloud/tech-specs.html
    Thanks!
    Eshant

  • Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
    The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
    The current release of Acrobat (XI) is compatible in Windows 7.
    Be well...

  • How do I get file paths when hovering over a file name in Mountain Lion?

    In Snow Leopard I used to be able to hover over any file name and immediately get a file path in a small yellow window. What has happened to this feature in Mountain Lion?

    arthur, thanks for the path bar tip. That is what I needed. Solved the problem.
    I don't know what has happened to the yellow window that would appear if you hovered over any file showing the path of the file. It was simple to see the path with this window that appeared and disappeared if you moved the cursor.

  • CS2/CS3/CS4: Cannot get file path in Unicode of the current document on Windows

    Hi All,
    In my automation plugin I need to have full absolute path of the opened document with any possible non-English letters. Using SDK examples Listener and Getter that come with Photoshop SDK the full absolute path which I obtain is in the default ANSI code page (CP_ACP) and I can convert it to Unicode using MultiByteToWideChar() API. However this works well when I have corresponding to document name language set in the "Control Panel -> Regional and Language Options -> Advanced -> Select a language to match the language version of the non-Unicode programs you want to use." For example if name of the document has Russian letters and chosen language in "Regional and Language Options" is also Russian the described conversion works well. If I change "Regional and Language Options" to English for example, full path returned by Photoshop SDK API (AliasToFullPath in PIUFile.cpp) for the document with Russian letters will contain "????????.psd" symbols.
    So I need to have an ability to get absolute file path in Unicode. Is it possible in Photoshop CS2/CS3/CS4 for Windows? I have searched forum and SDK but could not find info on it.
    Is it possible to have native HANDLE of the opened file to get file info using Windows API?
    Please advice.
    Below given slightly modified code from Photoshop CS3 which I use to get absolute file pat of the opened document.
    Thanks and regards,
    Sergey
    std::string outFilePath;
    int32 theID = 0;
    SPErr error = kSPNoError;
    error = PIUGetInfo(classDocument, keyDocumentID, &theID, NULL);
    if (error == kSPNoError)
    Handle theFileHandle = NULL;
    error = PIUGetInfoByID(theID, classDocument, keyFileReference, &theFileHandle, NULL);
    if (error == kSPNoError)
    int32 length = sPSHandle->GetSize(theFileHandle);
    Boolean oldLock = FALSE;
    Ptr pointer = NULL;
    sPSHandle->SetLock(theFileHandle, true, &pointer, &oldLock);
    if (pointer != NULL)
    outFilePath = (char*)pointer;
    sPSHandle->SetLock(theFileHandle, oldLock, &pointer, &oldLock);

    Hi All,
    Does anybody know, whether it is possible to get Unicode file path of the current document in Photoshop via Photoshop SDK API or without them?
    Thanks,
    Serhiy

  • How to get file path?

    Hi all,
    I have a tcode ysd_gr. When I execute it, it has one select option & I entered the values as *.csv. It gave 6 csv files(only file names) & I want to retreive data from one file.
    So I need to find the file path. The functional consultants told that the files are in Application server (there are more than 5 application servers are used here).
    So I need to know how to find the file path  and in which application server the file is placed.
    Thanks in advance,
    Vijay.

    Go to t-code AL11 and give the path name excluding the file name:
    I mean for example the name is as below:
    D:\usr\sap\IDS\DVEBMGS00\data\test.csv
    here test.csv is the file name.
    So go to AL11 and give upto D:\usr\sap\IDS\DVEBMGS00\data and dauble click on it and search for the file name.
    Hope this will solve your problem.
    Reward if helpful.
    Thank you.

  • How to get file path in the form \\filer01\dir\index.htm

    Hi,
    after selecting a file using the FileChooser dialog, i would like to convert the file path like "H:\index.htm" into a form like "\\filer01\dir\index.htm".
    On my system, the logical device name H:\ is mapped to a directory on a file server "filer01".
    Is there any possibility to do this conversion?
    Thanks in advance.

    hi,
    i dont think java has a way of figuring out the actual mappings for a drive, you can retrive all drives that are present using the following code
    File [] roots = File.listRoots();
    then you could just iterate through the roots some of which may be mapped (but you cant figure out which is mapped and which is not).
    So i guess the best way to do it is to have a Properties file with key,value mappings. for eg
    h:\\, \\file01\dir\..
    and then read the value from the Properties file, now if you want this for accessing a resource across the network you dont require to get the actual mapping, you can still use the mapped drive as you would use a unmapped drive.
    hope this helpz
    cheerz
    ynkrish

  • Get real path in non servlet class

    Hi,
    I've created a ServletContextListener class that loads a thread at application startup and kills it and application shutdown.
    The thread periodically monitors a specific file. I need to pass a real file path to the thread, but because the thread class is not a servlet, I cannot use the getServletContext().getRealPath("").
    What are my options?

    The ServletContextListener has access to both the ServletContext as well as the Thread.
    So the solution can be to get the path in the listener and pass it as a parameter to the constructor or a setter method of the thread.

  • Using AppleScript/Automator to get file path and create AFP hyperlink

    Hi All,
    A colleague has asked for a service (contextual menu item in Finder) to get a selected item's remote (afp://) file path and copy it to the clipboard...  Pretty sure I've got that part down. 
    What I need advice on is how to make the resulting pasted file path into a serviceable hyperlink.  AFP keeps telling me there was an error connection to the server....  Does the copied path have to include mounting commands and user credentials for this to work??
    Thanks,
    Nathan

    Hi Richard - here's the script:
    tell application "Finder"
              set sel to the selection as text
              set TempTID to AppleScript's text item delimiters
              set AppleScript's text item delimiters to space
              set sel to text items of sel
              set AppleScript's text item delimiters to "%20"
              set sel to sel as string
              set AppleScript's text item delimiters to TempTID
    set the clipboard to "file://" & POSIX path of sel
    end tell

  • Getting File Path to Open

    Is there a way to copy a full file path from a cell in Microsoft Excel to the clipboard and have Finder open it using another program?
    the Microsoft Excel cell looks like this...
    Primary Hard Drive:Microstock 2.0:Automation Processes:Automating Folder System:Bright:Bright Series Choices Circles.jpg
    the script I have looks like this but won't work...
    tell application "Microsoft Excel" to copy range (cell "B1" of worksheet "Keywording 2.0" of workbook "Metadata")
    set thefile to (the clipboard)
    tell application "Finder" to open thefile using "Primary Hard Drive:Applications:Adobe Bridge CS4:Adobe Bridge CS4"
    tell application "Adobe Bridge CS4" to activate
    I get an error "Can't make "Description" into type item.

    There are several flaws with your script, which are compounding your problem.
    First off, you're using copy range within Excel, which isn't what you want - that's intended to copy a range of cells within a worksheet to another worksheet.
    Secondly, even if that did work, you really don't want to use the clipboard for this. There's no need, for a start, and it disrupts whatever else the user may have had on the clipboard. Just think of AppleScript variables as being an infinite number of named clipboards and you can see that you could easily use an AppleScript variable to pass the data between Excel and the Finder.
    So, first off, getting the data out of Excel, you want to get the value of the cell and put it in an AppleScript variable:
    tell application "Microsoft Excel" to set myFilePath to value of (cell "B1" of worksheet "Keywording 2.0" of workbook "Metadata")
    Now myFilePath has the path data, which you can pass to the Finder:
    tell application "Finder" to open file myFilePath
    (although there may be no need to use the Finder at all for this - you can open the file directly, or tell Adobe Bridge to open the file, but the point of using AppleScript variables still stands)

  • Opening PDFs get "file path is not valid" errmsg

    very strange...
    I dumped a bunch of PDFs, word, excel & ppt files onto the documents folder. 
    All the PDFs give me "file path is not valid" errmsg and cannot be opened.
    But the word, excel & ppt files can be opened.
    Can someone help me figure it out? 
    Thanks.
    Solved!
    Go to Solution.

    solution is here: http://forums.crackberry.com/showthread.php?t=607769
    I feel also compelled to mention that I've had a ticket open at rim for this issue since 04/21 and have been escalated numerous times and yet all this time rim support has had no clue how simple the problem is to fix. This solution was posted >2 full days ago.

  • Fonts messing up on non-english windows

    I'm using Director 10.1 and Flash 8 Xtra for a 5 language
    DVD-ROM, English, Spanish,French, German and Italian. The etxt is
    stored in Director code and sent to several Flash 8 movies to
    display them
    Got results from my testing house today to say certain
    characters not appearing when Spanish and Simplified Chinesse set
    as OS Language on Win XP SP2. Both my flash movies and Director
    text fields display ? instead of the relevant character. Sometimes
    the character has an accent above it othertimes just a regular
    letter like e or g. I am using embed fonts in both Director and
    Flash. Avenir LT 85 Heavy seems to generate these ? and on some
    screens in Director using regular text members the layout messes
    (words apearing one character at a time on a line) when I use
    Avenir 45 Book.
    Now on my UK PC all 5 languages display fine, it's just on
    these test machines.
    Any thoughts as to what might be causing this?
    Thanks
    Kevin Boyd

    > Have you tried to install the coreesponding fonts on
    your test machines? I
    > blieve that if a font is missing from a machine director
    will replace it
    > automaticaly with a default font, somethign which
    usually result to the
    effect
    > that you are describing
    Shouldn't be an issue if the font is embedded. The only thing
    I can think
    of is make sure that you're using the embedded version of the
    font for every
    text/field object. (There should be an * next to the font
    name.) Also, is
    this text set by the program? Or is it entered by the user?
    If it's
    user-entered text, a non-English keyboard may be inputting
    foreign
    characters which your embedded font may not support.
    (Particularly the
    Chinese one.) If it's necessary for the foreign-language user
    to input
    text, you may have to make some sort of conversion code to
    make sure that
    it's fully compatible.
    I really hope that Adobe can do what Macromedia never would
    and put Unicode
    support into the next version of Director. Most problems like
    this would go
    away if they did that.

Maybe you are looking for

  • Can we have a Real batch process

    The current batch process functionality in Audition records not keystrokes, but settings; so if you record a process using the ClickPop Eliminator functionality under Restoration, you get whatever settings you used with the sound sample you used duri

  • How to - only display the price of approved PO (not change mode)

    Hi, Following are our PO release strategy 1. Release id : P has     a. Released indicator (tick)     b. Changeablity - 4 The above setup is working fine, means still after the approval users can change all the fields. New strategy is triggered once t

  • ABAP Rountine Conversion question

    This is a routine that was migrated from 3.5. Here is the code I have, I've bolded the area that's throwing the error message: PROGRAM trans_routine.       CLASS routine DEFINITION CLASS lcl_transform DEFINITION.   PUBLIC SECTION. Attributs     DATA:

  • Permissions problem with external HD

    Prior to updating to 10.4.3, I was able to write to any external HD to transfer large files betweek my iBook and a windows PC. After upgrading, I am no long able to use 3 out of the 4 external HDs that I used to be able to. I always get an error mess

  • Is this bad usage of the applet sound player

    I have this class for playing audio for my application. currently it is a game the is presented in a JFrame but when trying to play audio i kept coming across the use of java.applet.AudioClip for playing audio. what i want to know is what i am doing