Conversation String to UTF-8 and visa versa

I have a problem: From an IBM Host via CICS i get
the german letters, for example : "���" = x'81' x'94' x'84'. In a C program (with JNI) i use the method NewStringUTF to convert this characters to an JavaString. The result seems to be correct. I can see the exact german characters in Swing- und AWT components..
Then, versa to convert this String back to the original HostCodes with the method GetStringUTFChars in the same C programm, i get 2 unknown, confused Bytes for the 1 correct Byte i expected. This effect takes place only at the special german characters ������� !!!!
Who can help?

Having been through these kinds of problems a few times, I MAY be able to point you in the right direction.
1. You need to be VERY sure what you are seeing at each stage of the conversion. DON'T TRUST ANY DISPLAYS EXCEPT HEX DISPLAYS.
2. If you are operating on a Windows machine, you might investigate OEMTOChar and CharToOEM. I mention this because I suspect that your original encoding is not UTF-8, and so NewStringUTF is doing something strange.

Similar Messages

  • How do i Drag and drop From one tree to another and vise versa?

    I have two tree structures and i'm trying to drag a leaf of a branch from one tree to another and vise versa. i'm using flex 3 to code it. I'm also trying to put a prevention on dropping a leaf of one tree from being dropped inside a branch of another tree. Anything that is dragged over to another tree should be placed as a dangling node in that tree. Please share this code and help me find a solution.
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="
    http://www.adobe.com/2006/mxml" xmlns:comp="
    com.adobe.flex.extras.controls.*" initialize="data2
    new
    ArrayCollection(countries);"layout="
    absolute"verticalAlign="
    middle" backgroundColor="white" height="
    551">
    <mx:Script>
    <![CDATA[
    importmx.events.FlexEvent; 
    importmx.collections.ArrayCollection; 
    importmx.controls.Alert; 
    importmx.events.DragEvent; 
    importmx.managers.DragManager;  
    importmx.core.DragSource;  
    importmx.core.UIComponent;  
    importmx.controls.Tree;  
    // data provider for role name[
    Bindable] private vardata2: ArrayCollection; 
    // variable to store the node that is dragged from a tree 
    private var draggedItemOfAccessTree:XML = null;  
    private var draggedItemOfExclusionTree:XML = null; 
    private var dragItemAccess:DisplayObject =null; 
    private var dragItemExclusion:DisplayObject =null; 
    // Array to store the Role list[
    Bindable]public varcountries: Array = [{id: 0, name:
    "Role 1"},{id: 1, name:
    "Role 2"},{id: 2, name:
    "Role 3"},{id: 3, name:
    "Role 4"},{id: 4, name:
    "Role 5"},{id: 5, name:
    "Role 6"},{id: 6, name:
    "Role 7"},{id: 7, name:
    "Role 8"},{id: 8, name:
    "Role 9"},{id: 9, name:
    "Role 10"},{id: 10,name:
    "Role 11"} 
    // this event is called when we begin dragging a node in a tree 
    private function onAccessListDragEnter( event:DragEvent ) : void{
    event.preventDefault();
    vards1:DragSource = event.dragSource;  
    var items1:Array = ds1.dataForFormat("treeItems") asArray; 
    if (items1 != null && items1.length > 0 && (items1[0] isXML)){
    draggedItemOfAccessTree = items1[0];
    dragItemAccess = items1[0]
    asDisplayObject;}
    DragManager.acceptDragDrop(UIComponent(event.currentTarget));
    private function onExclusionListDragEnter( event:DragEvent ) : void{
    event.preventDefault();
    vards2:DragSource = event.dragSource;  
    var items2:Array = ds2.dataForFormat("treeItems") asArray; 
    if (items2 != null && items2.length > 0 && (items2[0] isXML)){
    draggedItemOfExclusionTree = items2[0];
    dragItemExclusion =items2[0]
    asDisplayObject;}
    DragManager.acceptDragDrop(UIComponent(event.currentTarget));
    private function onAccessListDragOver( event:DragEvent ) : void{
    event.preventDefault();
    varvar1:Number = AccessTree.selectedIndex; 
    varvar2:Number = ExclusionTree.calculateDropIndex(event);  
    var node1:XML = AccessTree.selectedItem asXML;  
    var node2:XML = ExclusionTree.calculateDropIndex(event) asXML;  
    //restrict drag & drop to nodes within same parent  
    if(draggedItemOfAccessTree.parent() == node1.parent() || draggedItemOfAccessTree.parent() != node1.parent()){
    DragManager.showFeedback(DragManager.NONE);
    //return; }
    elseDragManager.showFeedback(DragManager.MOVE);
    private function onExclusionListDragOver( event:DragEvent ) : void{
    event.preventDefault();
    varvar1:Number = ExclusionTree.selectedIndex;  
    varvar2:Number = AccessTree.calculateDropIndex(event); 
    var node1:XML = AccessTree.calculateDropIndex(event) asXML;  
    var node2:XML = ExclusionTree.selectedItem asXML;  
    //restrict drag & drop to nodes within same parent  
    if( draggedItemOfExclusionTree.parent() == node2.parent() || draggedItemOfExclusionTree.parent() != node2.parent()){
    DragManager.showFeedback(DragManager.NONE);
    // return; }
    elseDragManager.showFeedback(DragManager.MOVE);
    private function onAccessListDragDrop( event:DragEvent ) : void{
    event.preventDefault();
    varSindex:Number = AccessTree.selectedIndex; 
    varEindex:Number= ExclusionTree.calculateDropIndex(event);  
    var Enode:XML = ExclusionTree.selectedItem asXML;  
    var Anode:XML = AccessTree.selectedItem asXML; 
    if((draggedItemOfAccessTree.parent() != Anode.parent()) ){
    AccessTree.removeChildAt(Sindex);
    ExclusionTree.addChildAt(dragItemAccess , Eindex);
    // AccessTree.rdataDescriptor.removeChildAt(Anode.parent(),draggedItemOfAccessTree,Sindex);  
    //ExclusionTree.dataDescriptor.addChildAt(Enode.parent(),draggedItemOfAccessTree,Eindex); }
    private function onExclusionListDragDrop( event:DragEvent ) : void{
    event.preventDefault();
    varEindex:Number = ExclusionTree.selectedIndex; 
    varSindex:Number = AccessTree.calculateDropIndex(event);  
    var Anode:XML = AccessTree.selectedItem asXML;  
    var Enode:XML = ExclusionTree.selectedItem asXML; 
    if((draggedItemOfExclusionTree.parent() != Enode.parent()) ){
    ExclusionTree.removeChildAt(Eindex);
    AccessTree.addChildAt(dragItemExclusion, Sindex);
    // ExclusionTree.dataDescriptor.removeChildAt(Enode.parent(),draggedItemOfExclusionTree,Eind ex);  
    // AccessTree.dataDescriptor.addChildAt(Anode.parent(),draggedItemOfExclusionTree,Eindex); }
    private function onDragComplete( event:DragEvent ) : void

    Yes, I have set dragEnabled and dropEnabled to true. I trying to put restriction on dropping the node(aka leaf) of 1st free tree inside the branch(aka folder) of the 2nd tree. If something is dragged from tree1, it should be dropped only on tree2  i.e., dragged node should be appended at the end of tree2 and not inside nay of the branches of tree2. This functionality should work on both the trees. I'll be glad if u can provide the solution.

  • Ok Apple users...Is there a way to delete e-mails on my Mac and not have to delete the same e-mails on my iPhone, and iPad...and vise-versa. I have the Cloud, and thought that everything would sync all of the time. If you know of a setting I need to adjus

    Ok Apple users...Is there a way to delete e-mails on my Mac and not have to delete the same e-mails on my iPhone, and iPad...and vise-versa. I have the Cloud, and thought that everything would sync all of the time. If you know of a setting I need to adjust, please let me know.

    Are you referring to @mac.com, @me.com or @icloud.com emails? Or some other email providers emails?
    If the former, it should do that automatically. If the latter, no. iCloud does not (nor is it supposed to) sync non-Apple provided emails.

  • Using iPhote Keywords with PS Elements and visa-versa

    Howdy,
    Does anyone know if you can xfer (import/export) iPhoto keywords to PS Elements 4 or Photo Bridge and visa-versa?
    Or do you have to create a new Keyword list with Photo Bridge and PS Elements 4

    MV:
    You can use iView MediaPro in the Demo mode to catalog your iPhoto LIbrary and then sync (write) the keywords back to the original file. That will permit other applications to read those annotations in the source file. Check out Tutorial #1 here. The methodology is there to do what you want even though it's geared for a different issue.
    G5 Dual Core 2G, 2G RAM, 22 Display, 250G HD, 250G FW HD, QT 7.0.4P   Mac OS X (10.4.5)   Canon S400, i850 & LIDE 50, Epson R200, 2G Nano

  • ICloud help: universal apps wont automatically download to iphone 4s after downloading them on ipad and vis versa.

    Some apps that are universal will automatically download like, temple run, ibooks, bejeweled. But many other apps that are also universal like watchespn and pandora radio , wont automatically download to my ipad when i download them on my iphone and vis versa. Idk what the problem is and the guy i called at apple couldnt figure it out. Is this happening to anyone else and if so have you fixed it? dont say rebooyt or restart because i did that and nothin happened. Thanks

    On both devices tap Settings > Store
    Toggle Apps off then back on.
    See if that helps...
    edited by cs

  • Can't open Pages 05 saved in Dropbox on new Pages iPad app and visa-versa

    Updated to the new Pages 05 on all my devices (macbook, iPad, iPhone). Problem now is that I want to save documents into Dropbox. Works fine when saving a file from my macbook to dropbox, and then opening it on my macbook again. But whenever I create a document on either the macbook or iPad and save it into dropbox, it will not allow me to open it on the other device. I am very uneducated in this area, especially the new 'packages' that files are put in now, I'm not understanding how this all works and why I cannot open a pages file created on my macbook in a pages app on my iPad and visa-versa.

    I've just encountered this problem trying to work away from my main mac on pages and numbers documents, through my iPad - this was a great feature through dropbox -  now it's just another frustration - Apple why are you taking us backwards?  To resolve it I have to spend time moving all my documents to iCloud which is just making what was a brilliantly simple file sharing option, now very complicated.

  • My husband just got an iphone. I've had mine for a while.  We use the same email address so I though we could use the same apple id and password.  But now it appears everything on my phone also shows up on his phone and vis versa, even "Notes."  Not good.

    My husband just got an iphone. I've had mine for a while.  We use the same email address so I thought we could use the same apple id and password.  But now it appears everything on my phone also shows up on his phone and vis versa, even "Notes."  Not good.  How do I unlink them? 

    Read this planning tips:
    iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family

  • HT204053 I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    I have multiple devices used by family members, how do you make sure the kids don't see Moms messages from Dad and visa versa?

    Hi Roger:
    Thanks for the reply.  I think I figured out the problem.  Apple has confused (at least in my mind) the different IDs that people can have.  In the iCloud settings, they use the term Apple ID and not iCloud ID.  I guess there really is no such thing as an iCloud ID.  There are Apple IDs with various attributes.  This is not clearly explained or easy to see (how could I look up to see if my Apple ID is associated with iTunes for example?).
    I created, what I thought were iCloud IDs for each family member, but we all use my Apple ID for iTunes.
    One other question - why does the syncing of Notes using iCloud require an @me.com email account.  That makes no sense to me.
    Thanks for your help!
    AO

  • I downloaded the new iOS 6 for my iphone 4.  I have 2 iphones on my account and after the "upgrade" text messages go to both phones.  When I send a text to my wife I recieve the same text and vise versa.  How can I fix this?

    I downloaded the new iOS 6 for my iphone 4.  I have 2 iphones on my account and after the "upgrade" text messages go to both phones.  When I send a text to my wife I recieve the same text and vise versa.  How can I fix this?

    "Sounds like you guys are using the same apple id for imessage.   You will need to create a separate id for you wife.  OR go to settings - message - receive&send and make sure your phone number is the default for both you and yoru wife.

  • Creating INDD file from INX and visa versa

    Hi
    My task is to create a inx file from indd file and that was easy. I just use
    var myDocument = app.open(File(sourceFileName));
    //save INX
    myDocument.exportFile(ExportFormat.INDESIGN_INTERCHANGE, File(destinationFilePath+".inx"));
    but my problem is that I now have a more that one INDD file and one INDB file and client ask me to make INX file from it.
    (I;m just a developer and I never use InDesigner application at all so is it possible? and how?
    and than I have to form INX file create INDD file , text file and all Linking files in Links folder.
    I found a
    var myDocument = app.open(File(sourceFileName));
    myDocument.packageForPrint(myLinkFolder, false, true, false, true, true, true, "", false);
    but problem is that I got only INDD file and for some reason the newly create INND file has a name undifined_1.indd (I found that this is a file name that script foud from INX file ?!?) LInks file is empty.
    Is it possible that he create package and put all eps file there !?!

    I'm a designer not a developer, so I'm not sure I'll be helping but<br />the normal behavior when opening an INX file is creates an untitled<br />.indd file.  This is is typical.  I'm not sure how you would<br />automatically rename back to what it was previously. Have you tried<br />packaging the indd file BEFORE you make the INX file?  Also InDesign<br />has the ability to embed the images in the file or link them to<br />external files. You might check to see if that is done, by checking<br />the links pallet.  Unfortunately I'm not following what you're<br />starting goal and end goal is.  I'll be helpless with the programming<br />end, but any questions regarding how InDesign would typically do it,<br />I'm happy to help with.<br /><br />Rosie<br />Trying to learn scripting by osmosis (tucks her laptop under her pillow)<br /><br />On Wed, Feb 18, 2009 at 4:31 AM, lpastor74 <[email protected]> wrote:<br />> A new discussion was started by lpastor74 in<br /><br />> but problem is that I got only INDD file and for some reason the newly<br />> create INND file has a name undifined_1.indd (I found that this is a file<br />> name that script foud from INX file ?!?) LInks file is empty.<br />><br />> Is it possible that he create package and put all eps file there !?!<br />><br />> ________________________________<br />> View/reply at Creating INDD file from INX and visa versa<br />> Replies by email are OK.<br />> Use the unsubscribe form to cancel your email subscription.<br />><br />>

  • HT2731 I have 2 iPhone 4's in my name.  How do I stop from sharing my photos from one phone to the other.  When I take a photo it shows up on my husbands phone and vise versa. We have our iCloud turned off

    I have 2 iPhone 4's in my name.  How do I stop from sharing my photos from one phone to the other.  When I take a photo it shows up on my husbands phone and vise versa. We have our iCloud turned off in both phones.

    well i think one of you should change yalls name on the iphone its may not be the icloud but the names

  • Files from mac to RDC and visa versa

    I am trying to copy and paste folders from my macbook pro to my RDC and visa versa.Unfortuantly i am not having any luck does anyone have an idea how to do this i am a bit of a beginner on this stuff.cheers

    That does not work unfortunately, just extend one of your Mac folders to the RDC destination and you can transfer files simply by putting them in the folder:
    Thus:

  • Hi, I have updated my MacPro, Iphone and Ipad and installed the Icloud. My Ipod merges with the Ipad and visa versa but neither merges with the notebook nor does the notebook merge with them.

    I have updated my MacBook Pro, my Iphone 4 and my Ipad2. My Iphone merges with the Ipad via ICloud and visa versa, but neither merge with the notebook nor does the notebook merge with them. there are no further updates on my notebook to download, any suggestions?
    Maureen

    Home Sharing is designed to work on your local network not across the internet/cloud.
    Stuff is accessed under the Computers column where your local iTunes library on a local computer would appear.
    Home Sharing would share your iTunes content (i.e. stuff stored in itunes on the computer, not in the cloud) with AppleTV or an iPad etc on the SAME network.
    AppleTV2 will not be able to see itunes content on the work computer over the internet.  It's not designed to.  if the work computer was on the home network it would.
    iCloud is in it's infancy and is not a mature product - iTunes TV Show purchases appear on AppleTV, but currently music does not unless you are subscribed to iTunes Match. I find this rather odd to be honest, along with the inability to buy music on AppleTV2.  Movies purchased in iTunes are not authorised for iCloud viewing currently either.
    Maybe it has something to do with iTunes Match 'getting in the way' - i think they assume you'll use that whereas you really want to be able to access Purchased music from the cloud without subscribing to itunes Match which is overkill for some.
    AC

  • Which Acrobat or Adobe product is best to subscribe to for converting Word files (all types) to pdf files and visa versa?

    Which Acrobat or Adobe product is best to subscribe to for converting Word files (all types) to pdf files and visa versa?
    Thank you!

    Probably PDF Pack: Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack

  • Synch iphone calendars with laptop and visa versa

    Hi, firstly there used to be an i messenger where you could connect directly with the support staff to help yo resolve issues, has that service stopped now?
    I cant get my calendars to synch, I add something in outlook and I cant get it to my iphone and visa versa... infact my ipad, iphone and pc have different information in the calendars for tomorrow... well today as its 00:40 now! Any ideas?
    thanks, Zigster4

    You want to make sure that you add new events to the iCloud calendar in Outlook.  If you add an even to your default Outlook calendar, it will not sych to iCloud.  iCloud's calendar and the Outlook default calendars do not synch.  Instead, iCloud creates additional calendars in Outlook -- additional calendars that never synch with the Outlook default calendar.   So does iCloud "synch" data with Outlook?  Not really.  A better description would be that iCloud data is visible in Outlook. I keep looking to see if Apple or a third party has fixed this problem, but have found no solutions so far.

Maybe you are looking for

  • For STO with billing how to take material in plant stock without cancelling excise duty

    Hi, Please suggest for STO with billing how to take material back in plant stock without cancelling excise duty. Scenario is Material transffered from manufacturing plant to depot,material is in transit now, but due to some reason material calls back

  • Unable to set columns under Layout Margins and Columns

    On certain pages in my 40 page document, I am unable to set the number of columns by using Layout>Margins and Columns. The columns option is dimmed out. I have tried to set them on a blank page and pages where columns were previously set (I can see t

  • Procedure to generate Salary slip in ECC 6.0

    Hi All How do we generate a Salary slip in ECC 6.0? what are the steps one needs to follow? Thanks in advance. Regards Mohammed Edited by: Mohammed1 on Nov 27, 2011 3:53 PM

  • Max value is same in report

    Hi Sap Experts I am not getting same min value from max can anyone correct my program please I am getting max value but in place of min I am getting the same value of max. I am searching with equipment range , monthly date range and unit of measurmen

  • Upload/download indicator on the top bar

    Hi, i have a small problem, on the top bar of my macbook pro there is near the airport icon a new icon with two arrows up/down, and on the side of those arrows the download/upload rate. Every time i'm online it shows the actual transfer rate... cool.