UTF characters in the filename(Windows platform)

Hello all,
I want to know how to get the name of the document that contains UTF characters.
The current implementation of code:
BSTR l_fileInfoBSTR = NULL;
IActionReference l_docRef( m_photoshop->MakeReference() );
l_docRef.PutProperty( classProperty, keyFileReference );
l_docRef.PutIdentifier( classDocument, l_doc_id );
IActionDescriptor l_docDesc;
m_action_ctrl->GetActionProperty( l_docRef, (IDispatch**)&l_docDesc );
long hasKey = false;
l_docDesc.HasKey( keyFileReference, &hasKey );
if( hasKey )
      l_docDesc.GetPath( keyFileReference, &l_fileInfoBSTR );
Thanks.

Hello Ilya,
Thanks a lot, it is look like little trick .

Similar Messages

  • Characters in the filename.

    Is there a limitation to use special characters in the documents filename.
    Ex. In windows you can not use \/:*?"<>| characters in the filename.
    thanks
    Gb
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by gb:
    Is there a limitation to use special characters in the documents filename.
    Ex. In windows you can not use \/:*?"<>| characters in the filename.
    thanks
    Gb
    <HR></BLOCKQUOTE>
    Hi Gb,
    Here's the list of illegal filename characters in iFS:
    \ , / : ; * ? " < > |
    Regards,
    Diep Maser

  • When accessing certain websites, I am met with a random string of characters in the browser window. What could be causing this?

    When trying to access certain websites, http://redditenhancementsuite.com/ or http://www.channel4.com/programmes/the- ... od#3293733 for example, all I get is a random string of characters in my browser window like the following:
    ‹­XmoÛ6þ>`ÿáª/Ý€ZÊËú²Í6Ð%ÍZ¬íŠ&A±O%щTI*®‡ýø='J¶”8^†._L‰wÇ{yîá)ÓG§¿Ÿ\üñᜟx÷vþí7ÓÂWeû+Eο•ô‚ ïë‰üÜš›YtbŽ—ÚO.ÖµŒ(O³ÈË/>aåŸ)+„uÒÏ¿˜ŒˆØˆWŸ”ó2Ï•§Wº:“ŒÐy£Œœ&a‚¥Ò×de9‹œ_—ÒRúˆ<ŽêNÈœ‹š°r1‹¬t1?Îÿ›Z$kœ7ÕÄp#¹úÜH»ž4jr¿ˆŸÅa7‡S.³ªöC/®Äo#r6›Eœ Ÿ’$3¹Œƒ¹83Uoù0~WJÇWpvšExý»É•ëÜqïŽÅ‡¹º5/Y–r"Ž(×^enìàÃÍUâ+ƒ‹ÆVwNOŠ€A8’š| aÅï€Åšhš«›v%0Ú‚"A†UµUQ•XJ—”fiâZ/#Z©Ü³èèé@$Õ²ðxx—¹YÄ‚\!qÛjmMÌØÞa<õzÂÛ#ûÇ°ÙÛçug²ìà„i"˜¶‘¶Q!B-BTÓ†‘ð‡¶˜"ìÍeµh¢hþÚTh"Ï!žC%7+]‘‡zua­YEóÓnsŸ…Ÿá~I8ë÷©@z²ºWùøêœÎðžOe›å_ !Qûds“5Ì Â+£;·N‡ïö)‹Zu*/?ŒÙ'˜¬Ôµÿ»ŸEŠ¥Ð×ÑüÞîS©i|¯GÂÓ€-ì4 …fL/­iêŸ.®(óf€xÿŸ+BØÀVq8ç¬þÄÇ€gŒí°OЄÀ¿Ò©¥–9žœÒKÇüíL œ rz鳊,ךPý%ÒRR.\‘aóâçMÊ|–Jò†rå èPòèK‘£îwxg¬€…*œŽp…LÍ¥Ü%xYçÂÃé÷òFZ\9‹‡Ëd‡ÙSÕ¥ôÎÛmÀ—šóƃ®ÜZˆ¶§ŽÝ]’yÁíuOçcwÜùÏÜvþ‹£™ ×ûR"NN4¿‰Cýz&xšK¿ uŒÜãVÚm|;<ÌÛ;ošÔœ="" ò1êgôt;®]ôÍ+ÐÖ1]:0ªŒ‘ÛpJç;G †ÑÆ«…‚%€‚広ÜȲ6T rawpgYàÜñ•9J†ˆ®‘›“vŒ€Ó-_ö›”5S˜©cw\%Ê~bÞE Ñ#@8BšrÔ8DGN°fLï'¡×S誇#gCÑ1+žU0óàòŒLÀG‰Ë‡Ó5Á‚äºMËöÌ'H*ŸŽ…š®‹ZT„)¹‘­ûˆ.P%£îRU*\Äp?dÚÏ^J‡ëù«Áˆ‚õ7ù0™ÝØvJ2€­—倕:)*Î.œUºODÈïškÙ˜rú±§+TS#òÜè Zñ1£Ûš”ß—br|‹F·”òókºB’j‘]£\mMR¢XŠì\ãðÿožËJ42“9ÞÍùþèoCÁí¢·ÁÁcÐX·ÃóæîK¶C$ý}ï8šGr·žål0 ŽäöL…#¹]£àHàAóßHãÎÐ7Úý—Io${ÏxÇùçaÎRÒç—ñ„P–VTøZ[RºÞŽÝ'ãjµŠ|x@UÖø€5Õ݉óÜcö¡s“JÜVbNßm*70Ý~x‚3l24͇Olã{º|ƒ;•ÂûüÊ…V²Ìōʙ¡ônßN[)zÉwS§ÊÁÌâãÕø¹u°ŠŠÉµÈoÒ}‚¿*þò—ÔTÄ
    The characters change depending on the website. I've tried disabling all extensions and plugins, reinstalling firefox and reinstalling java to no avail. The issue seems to be isolated to firefox, chrome is able to display the webpages without a problem. The problem occures following a malware in infection which would redirect goolgle searches in firefox. It was dealt with using Malwarebytes Anti-malware and by removing some entries from C:\WINDOWS\system32\drivers\etc\hosts file.

    Hi,
    I tried everything above but to no avail. Windows firewall seemed to be allowing Firefox through without it actually being in the exception list. However, I did remove Firefox but this time removing all profile data too. Reinstalling Firefox seemed to make the websites work. However I then restored my bookmarks, and suddenly the websites stopped functioning again, displaying the random string of characters. Could this be an issue with my bookmarks?

  • Announcing the Universal Windows Platform development tools

    We just released the Universal Windows appdevelopment tools for writing Windows 10 apps in Visual Studio 2015. Itis an exciting release: you can now use the latest .NET technology to build Universal Windows Platform("UWP") apps that run on every Windows device - the phone in yourpocket, the tablet or laptop in your bag, the PC on your desk, the Xbox consolein your living room, and all the new devices that are being added to theWindows family like HoloLens,Surface Hub,and IoT devices like the RaspberryPi 2.Installingthe UWP ToolsYou can install the free CommunityEdition, which install the UWP tools by default. If you need theProfessional or Enterprise edition, you can download them from VisualStudio.com.During setup, choose 'Custom' to install the Tools for Universal Windows Apps.If you already haveVisual Studio 2015, here's two ways to...
    This topic first appeared in the Spiceworks Community

    Raghunathan wrote:
    I was just thinking if you can hold on to a specific version say for two years or so and release plug ins that the user may choose to add on as required. And once you know these are all bug free, merge them into a next major version. The Windows OS has in-built drivers for thousands of printers and scanners and one of the reason it takes 1 GB for simple install. Yet when I bought my new printer lst week, I loaded the driver that came with the printer ! I do agree that the dividing line between a universal package and a custom package is difficult to arrive. 
    I can not agree more with you Raghunathan. I have to admit I skipped Labview 8.0 to 8.5. But I upgraded then Labview 8.6 came out. And I am also happy that I completely ignored Windows Vista. I as customer want stability before a not quite error free new version, with only minor changes. But NI (the marketing department) want to sell, and think that they can create an artificial need by presenting a "new" version every year. I will also remind REM1 about the posting "Do you use LabVIEW but not apply for the beta?" http://forums.ni.com/ni/board/message?board.id=170&message.id=375205 That REM1 posted for about a year ago. It is quite interesting to see which postings that get most kudos
    But anyway REM1, are you entitled to leak some teasers about what will be new in the 2010 version. Or at least point to some areas which will contain new element(s)
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Making Filenames Windows Compatible

    Does anyone know of a program that will run in OS 10.3.9 that can go through my hard drive and change all windows-invalid characters in the filenames to something else?
    The best solution I've found so far is to use a file renamer program that allows find and replace and run it once for every invalid character.
    Kris

    Hi Kris, I use a script that I found on the web a while ago here http://hayne.net/MacDev/Perl/renameforwindows
    give it a try. All credit to Cameron for this.
    Cheers

  • MapIDs - How to make them the same as the Filename.htm?

    Hi All,
    I'm fairly new to Robohelp, hoping the experts can take it easy on me!
    We're in the process of converting our old WinHelp projects to Microsoft HTML Help projects. We previously had 10 separate .HLP files for our project, we're hoping to condence all of those into a single CHM file.
    In our previous projects, our MapIDs were as follows from the .HH file:
    #define HELP_Add_Cables    6171
    #define HELP_Add_Column    6181
    #define HELP_Add_Control_Unit    6537
    #define HELP_Add_Copy    17043
    etc.
    After converting our projects from WinHelp->MS HTML Help, each one of these topics created a new HTM file, ie: "Help_Add_Cables.htm", fine, no problem. But when I bring up the "Edit Map IDs" dialog, its now showing me the Topic ID ("How to Add Cables"), and not the HELP_XXX_XXX name that is used throughout our product. As a result, we would have to go through our source code and update approximately 1000 Map IDs - yuck!
    Is there a way to force this dialog to use the Filename, and not the Topic Name to generate the .h file? Is there some fancy editing I can do in Ultraedit instead of using Robohelp to get the result I want?
    I notice there is an alias file as well, that appears to correspond between the Topic Name, and the .HTM Filename.
    We were previously using Robohelp 5.xx, and recently upgraded to 8.0.1.204.
    Anyhelp you could provide would be greatly appreciated.
    Cheers.
    Mike.

    Hi,
    I created a small RH script that quickly assigns TopicId's and mapnumbers to your topics, based on the filename. Hope it helps.
    First, the script adds a map file called 'RHScriptMapFile'. No checks whether it exists or not.
    Then, creates a TopicId for each topic based on the file name. It just strips the '.htm' from the filename and replaces spaces in the name with underscores. A sequential mapid is added. The script is nothing fancy, but I hope it shows how you can quickly create a script that will save you from changing a thousand id's by hand.
    CreateContextSensitivity();
    function CreateContextSensitivity() {
       var MapManager = RoboHelp.project.MapIdManager;
         var MapfileName = 'RHScriptMapFile';
         MapManager.newMapFile(MapfileName);
         MapManager.setCurMapFile(RoboHelp.project.path+'\\'+MapfileName+ '.h');
         var topicmanager = RoboHelp.project.TopicManager;
         for(var i=1;i<=topicmanager.count;i++)
              topic = topicmanager.item(i);
              var TopicId = GetTopicId(topic);
              MapManager.newMapId(TopicId, i);
              MapManager.assign(TopicId, topic.path);
         alert('Context sensitivity created in map file '+MapfileName);
    function GetTopicId(topic) {//Get the topic id based on the filename
         var FileEnd = /\.htm/g;//Strip .htm from the filename
         var Forbidden = /( )/g;//Strip forbidden characters from the filename.
         var ID = topic.filename.replace(FileEnd, '');
         return ID.replace(Forbidden, '_');
    Greet,
    Willam

  • Reading a file with unknown characters (????)  in the filename

    Just a quick question. I have a filename which I created on a Japanese OS. The filename contains Japanese characters. When I bring this file over to an English OS it appears with ???? in the file name. I can view the file contents using notepad. However when I attempt to open the file for reading through Java it tells me that the file does not exist. Is there any way around this apart from installing a Japanese character set ????????? Please help!

    When I bring this file over to an English OS it appears with ???? in the file name.Exactly how did you "bring it over"?
    English Windows versions are reported to have problems with files from non-English versions.
    If you are not able to name the file in the English environment, you will not easily be able to open it.
    As a test, I would try to do a directory listing with File.listFiles() to see whether and how it appears.

  • SharePoint Search encodes the URL incorrectly when there are special characters in a filename on a file share

    In our Sharepoint Server 2013 CA, Search Administration, Content Sources, we have configured a File Share Content Source.
    Search queryes works fine and it returns relevant documents from the file share content source.
    But when click on a file with a filename that contains special characters like "ÁÝÚÍÓÐ", Sharepoint encodes the link to the file incorect, and when we click on the link to the file, it throws an error on the screen saying "This
    page can’t be displayed".
    The following picture shows an example on how Sharepoint shows encodes the URL to a file with a special character in the filename:
    As you can see, the link to the file is
    \\xserver1\felagstest\Kompliserað\Ólavur.pdf, but when I hoover over the file, it translates og encodes this to
    \\xserver1\Felagstest\Kompliserað\Ólavur.pdf. If I manually type the correct link in the address field in Internet Explorer then it works.
    What is the problem here, and more importently what is the solution to this problem?

    This is solved in the Hotfix KB 2899469 for SharePoint Server 2013 October 14, 2014:
    http://blogs.technet.com/b/stefan_gossner/archive/2014/10/14/october-2014-cu-for-sharepoint-2013-has-been-released.aspx
    I installed the http://support2.microsoft.com/kb/2899469 hotfix, and now I can search and open files on external file shares with path and filenames containing non-US-ASCII characters,
    without getting "This page can’t be displayed".
    Where in the description of this hotfix is written, that it solves the encoding issue?

  • I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click

    I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click, stops the other software from running, and won't shut off, ever.

    Try trashing the .plist in Home/Library/Preferences which has CharacterPalette in its name.

  • Problem launching Firefox from Windows with file path that contains space characters in the html file's file name

    We have a software application that programmatically launches the default web browser using the Windows shell execute function ("ShellExecuteA" in the "shell32.dll" library of the Windows API) along with a file path for a saved local html file that is to be displayed. In the case that FireFox is the default browser and the file path for the html file contains any space characters in the html file's file name, Firefox (in this case v7.01) will display an error message "File not Found..." and then will also proceed to open tabs for each of the individual words in the file name, launching as the URL path, each individual word appended to ".com".
    In the following example, the path "C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm" when launched programmatically, resulted in the error message "File not Found...Firefox can't find the file at /C:/KSSecOfState/Forms/Kansas." and opened up browser windows for "http://www.secretary.com/", "http://www.of.com/", "http://www.state.com/", "http://www.and.com/", and attempted to launch "http://forms.htm". If the same file (renamed) is launched using the path string "C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm" the file opens up correctly in Firefox. Clearly the presence of spaces in the file name is causing the problem.
    I should also note that either path (with or without space characters) works properly if pasted directly into the Firefox URL path menu bar for a live instance of Firefox. The test path strings I used were:
    C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm
    C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm
    Does anyone know anything about this problem or how to work around it (other than the obvious answer of taking the spaces out of the file name which is not possible for this application). It seems the problem is specific to Firefox. IE works properly if launched programmatically with spaces in the file name passed to it. I haven't tested other browsers yet.
    Thanks!

    If starting from ShellExecute works the same as starting from the command line then there are two options:<br>
    Put everything inside double quotes<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''"c:\test\svg test.htm"'''<br>
    Convert to a valid url with file:// protocol and percentage-escaping the space<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''file://c:\test\svg%20test.htm'''<br>

  • Why Photoshop will not give you the opportunity to download for either Windows platform or Mac.

    Hello, My husband spent all day waiting to talk to someone at Photoshop, to speak with them, while he is mostly bed bound now, on a feeding tube in his stomache, and is awaiting a surgury to keep him alive. He will be even more bed ridden afterwards. As always, and the complex health issues, he also could pass.
    He was crying by the time he tried to explain his story of need.
    You see, he has been using Phtoshop for many years, heavily invested, for his photo's and work. His Power Mac G5 crashed, we could not afford another, and he had just purchased CS5. So we could only afford the IMac now, we again needed to upgrade to CS6. The install alows you to use it on two computers, a  computer and laptop.
    We tried explaining to the sales people when he finally got through, that we need an install for just a Windows laptop, we can not afford another Mac, we need a laptop for him in bed, if he will be able to do anything, he wants to work on his art.
    They, Photoshop, were very unsimpethtic, we just purchased an upgrade for CS6, because of the IMac, yet, now we can not install and use our second choice on a Windows platform. Again, we would need to pay full upgrade price again. Yet, he only has it installed on Imac, they told him he would have to de-actiate it, WHICH, I ALSO HELP HIM IN HIS WORK, WE KEEP COPIES ON A EXFAT32 harddrive too, and Mac, to share and show clients.
    The people of Photoshop did not even care he is dying, litterly, slowly,,, but he is keeping positive that all will be well, and survive.
    Timothy and Marcia Cannon
    we will no longer be a coustomer for Adobe.

    Thank you, but you see, it needs to be on the Macintosh for me, and he is getting a PC, Windows laptop donated to him to use. You should have an option, as with many software providers do, Windows or Mac/Apple platform. We will  only be using theses two computers, and stated in their agreement, two computers are allowed, our printer allows it, many softwares allow this.
    He will need this "work" inspiration while recuperating, many years he has used their product. And now, he is going to be constant in bed, where as I can also help with the IMac.
    Timothy and Marcia Cannon
    [email protected]

  • Is there a limit of characters in the document JavaScripts window?

    Hi,
    I have several functions with huge arrays of data linked to a button field. All works fine if everything is declared in the document scripts and if the array is not too big. Once I try to insert a very huge array in the document script I receive the message "text is too large to be displayed in this dialogue". Why is so? Is there a limit of characters in the document script window?
    I am therefore trying to set up all arrays and functions in a separate javascript file and then embedded it into the 3d annotation. But when I do so,I loose the link to the button field action.
    As an example I have embedded in the 3d annotation:
    global.X= [[10,20,30,40],[5,15,25,35],[7,17,27,37]];
    function Update(n) {
         getAnnots3D(0)[0].activated = true;
         var a = global.X[0][n];
         var b = global.X[1][n];
         var c = global.X[2][n];
         var Mycamera = this.getAnnots3D(0)[0].context3D.scene.cameras.getByIndex(0);
         Mycamera.position.set(a,b,c);
         camera_1.roll = 0;
    and then I add in the button field Mouse Up action:
    Update(3);
    but nothing happens (while if the same script is in the document level script it works). I am probably missing the link between the embedded function and the button field? (either at host/doc/app level..)
    many thanks for the help!

    Your script contexts are messed up.
    That script is expecting to be run at the document level because it's collecting a reference to the 3D API (via getAnnots3D). You also have an undeclared variable (camera_1).
    If you want it to work as a 3D embedded script (not sure why) then you will need to remove the reference to "getAnnots3D.context3D" from the function, so you'd simply say
    var Mycamera = .scene.cameras.getByIndex(0);
    There's no point in using the first line of the function to activate the API, as the function wouldn't exist until it was active.
    Your button will then need to target the function with a reference, so it'd be getAnnots3D(0)[0].context3D.Update(3); (you will also want to put the activation command on the button's event)

  • Build event announced that you can convert your android app to windows platform ! How can I get the tools to do it?

    From the build event I heard that you will be able to convert Android and iOS application to windows 10 phone platform! How can I do that ? Where can I get the tools ?

    Here you go!
    Universal Windows Platform Bridge for the Android Runtime:
    http://aka.ms/projectastoria
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • Everytime I open a new window, the old window gets Chinese characters in the tab bar.

    Every time I open a new window, the old windows gets Chinese characters on the tabs. They won't go away until I restart the whole browser.

    hello, this is a displaying flaw caused the mcafee site advisor extension - please try to disable or remove that in case you have it present until there is an update by mcafee that can fix the problem.
    http://service.mcafee.com/faqdocument.aspx?id=TS100162 https://community.mcafee.com/thread/76071

  • How can I make JAVA listen to a USB device in the windows platform?

    Hello, Im trying to make a program in JAVA which gets input from a joypad but I dont know where to start.
    Im using the Windows platform. I have the joypad and driver which came with the joypad, what do I do next?
    Thanks in advance, Ant...

    Well i believe there are few JAVA APIs which might help take help
    of JNI on specific OS platforms to provide you a solution to have kind of JAVA-USB communication and refered under JSR 80.
    and below is an example of it
    http://jusb.sourceforge.net/
    and hope below articles might help better in terms of more insights.
    http://today.java.net/pub/a/today/2006/07/06/java-and-usb.html
    http://www-128.ibm.com/developerworks/linux/library/j-usb.html
    http://www.ibm.com/developerworks/library/j-usb.html
    http://jusb.sourceforge.net/apidoc/overview-summary.html
    and if you thinking of using jUSB would be a better to start with its javadocs
    http://jusb.sourceforge.net/apidoc/usb/core/package-summary.html
    and as per your requirement usage of usb.windows pacakage is appropriate.
    Hope that might help :)
    REGARDS,
    RaHuL

Maybe you are looking for

  • AE and USB Print / Scan / Copy with HP PSC-2410

    My Airport Express finds my HP printer immediately upon plugging the printer into the AE USB port. Printing to it from various macs around the house has been wonderful...but...In order to use the HP's other functions, such as scanning and copying, it

  • USB trouble...

    I have an intel iMac (intel core duo 2 GHz) and I upgraded to leopard with no problems for nearly a month. Recently I experience an issue with the USB drives and all that are related to it. I am using elgato EyeTV, an external USB hard drive, iSight

  • Can't create valid PL/SQL stored procedure

    I have two questions about PL/SQL and JDBC: Question 1: I'm trying to create and execute a PL/SQL stored procedure, and I can't seem to get the syntax right. I'm trying to create the simplest stored proc I can. Here's the stored procedure: create or

  • 802.1x authentication fail when trying to implement 802.11N

    Hello, I'm trying to deploy 802.11N along with 802.1X and IAS. Controller comunciates with Radius server (IAS) and this lives in a ESX host along with the Domain controller. Somehow users are not able to authenticate. WLC: AIR-CT550 - IP 10.152.36.5

  • How to edit Printer Connections in GPO created through Print Management's "Deploy with Group Policy"

    Hi there, I have used the right-click "Deploy with Group Policy" in Print Management on Windows Server 2012 to deploy a printer connection to a GPO.    When you look at the GPO Settings, the Printer Connection is visible under User Configuration -> P