CS3 [WIN]- ConvertWideStringToUTF8()  problem

Hi,
I'm using the StringUtils::ConvertWideStringToUTF8() method in order to get an string UTF8 encoded. I have at input the following WideString "áèÍÖ", that is in UNICODE:
(dec.)= 0x00E1,0x00E8,0x00CD,0x00D6,
so, the output of this method must be a char* like this:
(in UTF8)= C3A1,C3A8,C38D,C396 ... but the real output I'm getting is:
C3A1,C3A8,C320,C396 ... and C320 (Í) is not a valid UTF8 code,so, any xml parser or utf8 validator says that this is not a valid char.
Then, does anybody know something related with this problem? It ConvertWideStringToUTF8() works? Have I to implement my own method to convert a unicode string to UTF8 encoding? Any ideas?
Thanks in advance,

Hi Rajani,
You are right, and PMString is not the better place to work with encoding.
This code is working too:
std::string result;
// pstr is my original PMstring
WideString wsStr( pstr.GrabWString());
// trasnform widestring to utf8 char *
StringUtils::ConvertWideStringToUTF8( wsStr, result );
Thanks for your help!

Similar Messages

  • CS3 Win printing problems

    I have been trying to print a page within my file and it will not print. I have tried
    restarting program then computer
    save as PDF- error "out of memory"
    pulling just the page in question to my hard drive and all links
    resaving the document as Interchange then printing
    removing graphics to find the culprit- seems all would be the problem
    resaving all graphics as another name, re-placing them in ID then printing
    The graphics links are from Illustrator and saved via network
    I do not have an error to go by except I have crashed many times.
    Any ideas?

    Thank you it worked.
    I did what you said and then re-link the files to the new location. I had to print the page in question by it's self and it took approximately 10 min. Is that because of the file size of the graphics? Also they are created in Illustrator but they also contain raster art with clipping masks. Would this cause it to slow down? I'm trying to figure out the best and fastest way to get these printed.
    Thank you so much for your time and help.

  • DW CS3 site cache problem

    I upgraded to CS3 with no problems except I now find that if
    I attempt to delete a word of pdf file that I know is linked to an
    htm page, DW no longer gives me a warning message. This means that
    If I do a sync. any updated word or pdf files do not get uploaded
    to the server. If I do re-create the site cache the files still do
    not get "re-linked". Anybody got an idea what is going on? I have
    an awful lot of pdfs and docs linked from my site.
    Thanx in advance

    I figured out if I drag the file window to the left it will
    stay on the left. I thought
    before in previous version when you select files to be on the
    left the preferences menu they would go to the left. Problem
    solved.
    RazorTrak

  • Upgrade from CS3 Win to CS5 Mac is possible?

    Quite a simple question:
    Is it possible to make upgrade from CS3 Win to CS5 Mac?
    If "yes", which are the steps I'll have to follow?
    I would like to mention that I'll buy the upgrade software
    in Romania, so I'll have to deal with a Romanian Adobe
    software distributor.
    Thank you!

    All right. Thank you!
    Which of the following numbers should I call?
    Software activation
    866-772-3623
    Available 24/7
    Licensing, registration, web subscription services
    800-833-6687
    7 days a week, 5am–7pm PST

  • TS1459 Win 7 , itunes store will not accept Apple ID, on the diagnostic program says secure link failed spoke to tec.dept they say Win security problem ,, turned all off problem still the same any ideas please

    TRYING TO AUTHORIZE MY COMPUTER>>>>>>>on the diagnostic program says secure link failed spoke to tec.dept they say it's a Win security problem ,, turned all off problem still the same any ideas please Ipad ,
    (((Strange thing is Apple want me to purchase assistance to enable me to buy from thier store)))

    You should send this to Apple.

  • CS3 Illustrator crashing problem

    Hello all,
    Lately my illustrator cs3 has been crashing every time I try to save a new file. It is so frustrating after doing all the work and can't save. I work on Windows XP 2002 system. Can anyone help?
    Thanks so much!

    Hi Jacob, Just so you know, I was in a hurry and no way was able to buy an expensive product to do my artwork project. I couldn't find older TRIAL versions to download without 3rd party attached  programs & BS that could be bad to do.
    But, I need to go back on the forum to say that I rebooted to try one more time and it worked. Don't know why it didn't work the first time around because it was a fresh open of Illustrator, hadn't been working on it for a month then the first time didn't work.
    I don't have time to go back on the forum right now got to leave for work. You can mention you heard this from me if you want so that people aren't misinformed.
    thanks for replying
    Jacob Bugge <[email protected]> wrote:
    Jacob Bugge http://forums.adobe.com/people/Jacob+Bugge created the discussion
    "Re: CS3 Illustrator crashing problem"
    To view the discussion, visit: http://forums.adobe.com/message/5926730#5926730

  • Wine : sound problem

    i installed the game sof2 by wine.
    the problem is that the sound in the game is bad
    do u have solution?
    thnak u

    You can check winecfg -> Graphics to see if Direct3D Vertex Shader Support is set to hardware.  If it isn't, switch it.  Otherwise it's probably just a bug with emulating that game.
    Here's the linux gamer's howto on the game; but it looks like they didn't have much trouble with it so it probably won't be much help.
    Also if you don't mind, please don't post the same thread in multiple topics.  Thanks.
    Last edited by jb (2007-02-21 02:33:09)

  • Smart Objects Problem : Templates : CS3 : WIN

    Hello,
    I am trying to create some reusable templates in Photoshop CS3 using Smart
    Objects. Basically I want to layout the page with some place-holder photos
    that are smart objects and then when I need to create a page simply load the
    template PSD, right-click on the smart object layer in the layers palette
    and choose replace contents. This seems to be possible and even works
    sometimes. However, a lot of times the size of the smart object images
    change.
    For example I could set a smart object place-holder image to be 4 x 6 -
    inches at 300 dpi, replace the image with another image and the size will
    then jump to some odd size. I even had it once go to 2 x 10 inches. I
    thought the whole point of smart objects was that I could replace the
    contents and it would be sized, etc. the same. Well that is one point of
    smart objects.
    Is there a bug? Could the fact that I have layer styles and rotation and
    resize transformations applied to the smart object be creating the problem?
    Any way around this?
    This is Photoshop CS3, Windows Vista, Quad Core Processor, 4GB of RAM, 8 TB
    of hard drive space.

    Are you perhaps changing the layer order, grouping or some clipping masks? As usual I'm not working with these features a lot and probably shouldn't advise ;-), but I could imagine that this would affect rasterization and how PS may want to update info that no longer is in the place where it expects... I'd also check the "Temp" directory (Documents and Settings\Rachael\Local Settings\Temp). Perhaps it's simply full and the programs are not able to update the temporary files.
    Mylenium

  • Problem in Getting  Child Count And Child Reference of a Group  [CS3/WIN]

    Hi All,<br /><br />I have Created a group For Some pageItems using kGroupCmdBoss<br /><br />InterfacePtr<ICommand>groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss));<br />InterfacePtr<IGroupCmdData> groupCmdData ( groupItemsCmd, UseDefaultIID());<br />UIDList*list=new UIDList(grpList);//grplist contains UID of all items to be grouped<br />groupCmdData->Set(list);<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd);<br /><br />Till here every thing is working fine.<br />But when i want to traverse through all group item using IHierarchy every time its giving child count as one.<br /><br />InterfacePtr<IHierarchy> child( groupRef,  UseDefaultIID() ); <br /><br />int32 grpchildCount = child->GetChildCount(); //always 1<br /><br />I am not getting why its  always return child count as 1. But the same code is working fine when i am creating group using click on Group In UI. <br /><br />Can any one tell me How Top Iterate through group in above case.???<br /><br />I think when i am executing Group command some document hierarchy is changing becoz of that i am getting issue??<br />any idea??

    Hi Dirk,<br />Thanks For your Reply.<br /><br />ya you are correct I'd call that variable groupHier rather than "child".<br /><br /> ---You've omitted the interesting part, how and when you obtain that <br />groupRef.<br /><br />When i am creating group as mentioned above after executing group command i am using.<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd); <br /><br />b UIDRef grpRef((groupItemsCmd->GetItemList())->GetRef(0));<br /><br />I am using this reference to set script label("Group") for that group.till here its working fine group is created and script label is set.<br /><br />Then i am iterating through all page items using                 UIDList itemsOnPage(database);<br />const bool16 bIncludePage = kFalse;<br />const bool16 bIncludePasteboard = kFalse;<br />                         spread->GetItemsOnPage(pageIndex, &itemsOnPage, bIncludePage,<br />                         bIncludePasteboard);<br />int noOfItems=itemsOnPage.Length();<br /><br />for(int32 pageItemIndex=0;pageItemIndex<noOfItems;pageItemIndex++)<br />{<br /><br />UIDRef pageItemRef=itemsOnPage.GetRef(pageItemIndex);<br /><br />//here i am reading script label <br /><br />if (Utils<IPageItemTypeUtils>()->IsGroup(pageItemRef) == kTrue) <br />{<br />InterfacePtr<IScript>script(pageItemRef, UseDefaultIID());<br />PMString grpScriptLabel=script->GetTag();<br /><br />if((grpScriptLabel.Compare(kFalse,"Group"))==0) //comparing with group label to check that this is group<br />{<br />// so it is group <br />InterfacePtr<IHierarchy> grpHier( pageItemRef,  UseDefaultIID() );<br /><br />b ASSERT(::GetClass(grpHier)==kGroupItemBoss); //No Asserts here<br /><br />int32 grpchildCount = grpHier->GetChildCount(); // here i am getting always one<br />}<br />}<br /><br />}<br /><br />I check for Ur suggested Assert But i am not getting any assert.<br /><br />And One more interesting thing i found that the group i have created programatically is behaving fine as group in Indesign UI.But when I want To Ungroup In UI  by right on Group item And Click UNGRoup option in menu nothing seems to happen.<br /> <br />I am really puzzled.

  • CS3 + Win 7 64 + Quad Core = Rendering nightmare

    I really need some help here.
    I installed Win 7 Ultimate 64 with 8 GB ram and a Q6600 quad core processor. I have a WD Caviar black 7200 RPM HD with 32 meg buffer as my OS drive and two WD 7200 160 GB HDs in RAID 0 as a video drive. Im also using a EVGA GTX275 Nvidia card with 868MB RAM and the latest driver.
    I have some serious concerns about Premiere Pro CS3s abiltity to render in Win7.
    Here is the video I am attempting to render. I am making a Star Wars type intro with rolling text. I have two rolling text titles (each on their own layer) over a starfield video (on its own layer) that is being held on the INPOINT (the star field is). One rolling title starts where the other ends in order to give the effect of one long rolling title off to the far distance.
    When I render this....and while watching my CPU Usage gadget, all four cores peg at 100%. Thats good. However, the render takes forever..and crawls. Sometimes it ticks off one frame per second. To make a segment that runs about 1min 30secs, its takes a good 8-10 mins to render. All the while, the four cores show 100%.
    What is the problem? Ive tried to defrag. I tried to turn off Aero. Ive run it AS ADMINISTRATOR. Ive run CS3 in XP SP2 mode etc. Nothing. There is no way it can be this slow to render that. Overall, I think I see slow renders in other areas too. And the previews themselves, are choppy.
    Tell me there is a fix or a patch or something. This is ridiculous.

    Thanks for the input. I ran it again.
    TeachDJs PC,   Personal or Computer ID
    MSI,  Computer Manufacturer
    MS-7350,   Computer Model
    103.2,  secs Total Benchmark Time
    6.2,  secs AVI  Encoding Time
    62,  secs MPEG Elapsed Time
    35,  secs Rendering Time
    Intel,    CPU Manufacturer
    QX6850,    CPU Model
    3.00,    GHz CPU speed
    1,    Number of CPU chips
    4,    Total Number of Cores
    8,    GB RAM
    4.2.1,    APP Version PPBM4 DV
    Win 7 64,    OSVersion
    SATA,    OS Disk Interface
    640,    GB OS Disk Capacity
    7200,    OS Disk Speed
    SATA,    Project Disk Interface
    160x2 R0,    GB Project Disk Capacity
    7200,    Project Disk Speed
    SATA,    Preview Disk Interface
    160x2 R0,    GB Preview Disk Capacity
    7200,    Preview Disk Speed
    Project Disk,    Output Disk Interface
    Project Disk,    GB Output Disk Capacity
    Project Disk,    Output Disk Speed
    1xEvga Nvidia GTZ 275 896 MB RAM,   
    Neither of my disks are at or above 70% fill capacity.  I am not using compression or indexing on either drive. They are turned off.

  • Top half of video is missing on imported WMV files. Running  CS3 & Win XP Professional

    Top half of video is missing on imported .WMV  files. I'm running CS3 Adobe Premier Pro with Win XP Professional OS
    Hi all,
       I just installed my Adobe Premier Pro CS3 for the very first time. I then IMPORTED a WMV file into the Project Frame and  then Dragged & Dropped it into the Time Line. All the windows (or Frames) Project Frame, Source Frame and the mini-Project Frame show this video with the top half missing. I’m running Win XP Professional with the latest Service Packs installed.
    Please Help.
    Thanks
    Derek

    After Searching the net for a while here, I found a solution to the "Half Screen" problem!
    The half screen video problems seen while trying to play WMV files in my CS3 Adobe Premiere Pro program seems to have been due to a recent Windows software Security update made to it’s Windows Media Player programming. As soon as I removed that update, my WMV files now show normally within Adobe Premier Pro.
    If you wish to uninstall this Windows Patch / Security Update on Win XP Machines:
    No#1 Prior to removing/un-installing the file, shut off "Windows Automatic Updates" and set update preferences to manual. Thus in the future you can select which Updates you want to instal (and which one not to instal)  *remember to ignore the KB2834904 update in the future! That is at least until Widows fixes this Security Update / Patch.
    A) Go to "Add/Remove Programs" in Control Panel
    B) In the Add/Remove Programs, check the "Show Updates" box located at the top of that window
    C) Scroll down to "Windows XP Software Updates" and within that section, scroll down to "Security Update for Windows Media Player" KB2834904 (mine was dated 7-10-2013)
    D) Click on the REMOVE button and re-start your system.
    If using Win 7 Operating System: to remove this Patch / Security Update the file to remove is: KB2803821 - In Windows 7, go to "Add/Remove Programs" in Control Panel, click on the "View installed updates" link in the left sidebar, search for KB 2803821 and click REMOVE.
    Good luck everyone!
    Derek

  • DV CS3 Alt+Shift problem

    hello i have problem whith the dreamweaver. i need the
    STANDARD PANEL in DV CS3 turned ON. everithing is ok but if i
    switch other keyboard leangue (alt+shift or if i select the
    keyborad language from the icon on bottom on the screen) the
    standard panel is turned off ! i testing this in win XP and VISTA
    system and i have the some problem.. Please help my because it`s
    interfere when i working. Any solution for this ? thanx. sorry for
    me bad english...

    it`s it normally ??? i found the bug in dreamweaver cs3 and
    nobody can write me about this problem ??? i attempt to change the
    shorcuts keyborad in windows to select the keyborad leangue from
    Shift+Alt to CTRL+**** or CTRL+1... if a changing the shorcuts the
    old shorcuts in dreamweaver has not effect but my new shorcuts
    reseting the panels to the standart view !!!!! OMG, HELP ME ANYBODY
    !!!!

  • Cross-grading from CS3 (Win) to CS5 (Mac)

    I've read some horror stories about people trying to cross-grade from one platform to another but I was wondering if the problem only really came about if you were trying to cross-grade between the same version numbers (i.e. changing a Windows CS4 to a Mac CS4)? Can I just purchase a Mac version CS5 suite upgrade and install it (on the Mac, obviously) if I have the qualifying Windows version suite? Will the Mac upgrade accept the Windows license number and let the install work?

    Not without buying it directly from Adobe. The serial numbers and media are platform specific so your Mac upgrade won't recognize the Win serial number.
    Another point. The upgrade from CS3 to CS4 is $200 less than CS3 to CS5. If this is something you want to do, I would strongly encourage you to call Adobe quickly and ask if you'll qualify for a free upgrade to CS5 if buy CS4 now.
    It will be a complicated with the switching of platforms but it's worth looking into.
    Bob

  • [JS CS3, Win] Saving InDesign using app.activeDocument.save

    Hello.
    I am having problems saving an InDesign document using Javascript.
    My aim is to have a box in the document where I will type the filename and path where I want the InDesign file to be saved (eventually this will be generated from a datamerge).
    I then want to run a script which will read the contents of the box and then save the document to that filename or location.
    At the moment I have:
    //SaveText.jsx
    //An InDesign CS3 JavaScript
    //Saves the document to the provided path
    //get contents of the FileNameBox box on the document
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    //now save
    app.activeDocument.save("/"+ varFileName+".indd");
    //alert (app.activeDocument.filePath);
    When I run the script (with "Hello" in the FileNameBox) the file changes name on the top bar of InDesign to "Hello.indd", but (when I run the commented out alert at the end) the file is not actually saving anywhere.
    If I close InDesign and then open it the file is listed under "Open Recent" on the menu, but clicking it does nothing - again the file doesn't exist.
    Does anyone have any ideas to help me from tearing my hair out?
    Where is my file saving? (Or, if it isn't, how can I make it save!).
    Thanks in advance for any help you can offer.

    var myFolder = new Folder("~/Desktop/Test");
    if (!myFolder.exist) myFolder.create();
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    app.activeDocument.save(myFolder.fsName + "\\" + varFileName+".indd");
    alert(app.activeDocument.filePath);

  • Dual Boot Win 7 & win 10 Problems?

    I am dual booting this, (Win 10 on my 2TB HDD and Win 7 on my SSD.) and now when i try to boot back to Win 7 my mouse switches off. The thing works fine in 10, and had been workign for years on 7... Anyone else seen a problem like this? 
    I have tried reinstalling the mouse drivers and it isnt helping on Win 7. Unplugging and pluggung in, the mouse lights up for a split second, but then dies again. switch back to Win 10 and it works as usual. No problem at all...

    Hi RobGamez,
    Are you using USB mouse?
    If so, how about another USB port?
    If this is a USB mouse, I suggest you uninstall the USB controller in Windows 7 system and restart to check if you can get it work.
    1.Open Device Manager.
    2.Expand Universal Serial Bus controllers.
    3.Right-click every device under the Universal Serial Bus controllers node, and then click Uninstall to remove them one at a time.
    4.Restart the computer, and then reinstall the USB controllers.
    Alex Zhao
    TechNet Community Support

Maybe you are looking for

  • Open report link in the same page

    Hi, I have two reports in a dashboard page with a prompt. Now, I need to display one report in the compound layout and the other should appear as a link. When a user wants clicks on the link, the second report should also be displayed along with the

  • Unable to delete or combine pages in Acrobat Pro 9

    I am using Acrobat Pro 9 and want to delete a page and then add a page to an existing pdf document that was created in Adobe 9 Pro to begin with.  I have tried using the "pages" tab to create thumbnails and then highlight the page I want to remove an

  • Frequent segfaults caused by gpu

    Everything seems stable on start up but as programs run longer they become more likely to segfault. Tabs in chromium begin to segfault constantly and Firefox crashes almost as soon as its opened and all other programs crash but more sporadically. I a

  • Conversion cords for apple products from US to Ireland

    what type of conversion cords do I need for an Iphone (U.S) in Ireland?

  • Losing wireless Internet connection HH 4

    Hi, I am using a HH4 and have a number of wireless devices including two smartphones, a Windows 8.1 tablet, a Windows 7 laptop, a smart TV and a Nook connected wirelessly plus one desktop connected by ethernet. I also have a wireless repeater. Almost