Unicode to EUC_JP ROMAN NUMERAL is wrong , please help me!

Hi, all
I want cover the roman numeral from Unicode to EUC_JP , faild !
there is my program , please check it and tell me where i lost, and what to do it. thanks!
yours Urey
********* my program *************
     void saveEnc(String enc) throws java.lang.Exception{
System.out.println(" from Unicode to " + enc);
          for(int num =0x2160; num<0x216a; num++){
          char aChar = (char)num;
          if(!Character.isDefined(aChar)){
               continue ;
          String tmpStr = String.valueOf(aChar);
          byte[] tempEncBytes=tmpStr.getBytes(enc);
          String tempEncStr = new String(tempEncBytes, enc);
          String debugString = " " + num
          + " " + string2charcode_string(tmpStr)
          + " [" + tmpStr + "]"
          + " " + byte2charcode_string(tempEncBytes)
          + " [" + tempEncStr +"]" ;
          System.out.println(debugString);
********* my result *************
E:\You Li\Working\nec\F2\sql\test>java Dbtest_E Shift_JIS
from Unicode to Shift_JIS
8544 2160 [�T] 87 54 [�T]
8545 2161 [�U] 87 55 [�U]
8546 2162 [�V] 87 56 [�V]
8547 2163 [�W] 87 57 [�W]
8548 2164 [�X] 87 58 [�X]
8549 2165 [�Y] 87 59 [�Y]
8550 2166 [�Z] 87 5A [�Z]
8551 2167 [�[] 87 5B [�[]
8552 2168 [�\] 87 5C [�\]
8553 2169 [�]] 87 5D [�]]
*************** that's ok ************************
E:\You Li\Working\nec\F2\sql\test>java Dbtest_E EUC_JP
from Unicode to EUC_JP
8544 2160 [�T] 3F [?]
8545 2161 [�U] 3F [?]
8546 2162 [�V] 3F [?]
8547 2163 [�W] 3F [?]
8548 2164 [�X] 3F [?]
8549 2165 [�Y] 3F [?]
8550 2166 [�Z] 3F [?]
8551 2167 [�[] 3F [?]
8552 2168 [�\] 3F [?]
8553 2169 [�]] 3F [?]
********** that's falid , Why ? ********************
********** my java environment *******************
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)

Please don't cross-post your questions.

Similar Messages

  • How to install windows 7 on my macbook pro mid 2009 using usb. right now aim using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me

    how to install windows 7 on my macbook pro mid 2009 using usb. right now iam using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me.
    Iam new to coding. please help me.

    try the solution posted by kunu here and report back
    https://discussions.apple.com/thread/5105056?tstart=0

  • HT4113 When I go for restrictions my iPad mini want my pass code I fill it's recurarment it's say wrong please help me what I do....?

    When I go for restrictions my iPad mini want my pass code I fill it's recurarment it's say wrong please help me what I do....?

    Hey there Ajjusingh,
    It sounds like the passcode you are entering for your Restrictions is not working for you. According to the following article you will need to perform a factory restore to reset that passcode:
    iOS: Understanding Restrictions (parental controls)
    http://support.apple.com/kb/ht4213
    Note: If you lose or forget a restriction passcode, you will need to perform a factory restore to remove it.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Hello sir i have IPhone 5 this imei is : ******** and i but my mail and password but the icloud tell me its wrong please help me my mail is : ********  and my password is ********

    hello sir i have IPhone 5 this imei is : ********** and i but my mail and password but the icloud tell me its wrong please help me my mail is : *********
    and my password is *******
    <Personal Information Edited by Host>

    You might try the following steps:
    Restart the device by holding down the on/off button until the power down slider appears.
    Try entering your password in another location (i.e. when you are using a different wifi network)
    Reset all settings (settings > general > reset), this resets some of your settings to factory default. It’s not a complete removal of settings. It removes all of your preferences for Wi-Fi, Bluetooth, Do No Disturb, Notifications, General, Sounds, Brightness & Wallpaper and Privacy. It does not remove any of your data.
    Try signing out of iCloud and back in (only if find my phone is disabled)
    If this doesn’t help your best option may be to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.

  • HT4759 I find the delete button on my iPhone and iPhone wrong goes wrong please help thanks

    I find the delete button on my iPhone and iPhone wrong goes wrong please help thanks

    Welcome to the user to User Technical Support Forum provided by Apple.
    Clearly state your Issue and the Troubleshooting Steps you have tried to Resolve it.

  • My brother set up his new i phone wrong please help

    hi my brother was directed wrong in setting up his i phone 4s he set new i tunes up on different nan and account settings to make life easier i need to change the settings on there and attach it to another i tunes accont please help!

    Try this
    Settings -- Store -- click on email address and select sign out from menu
    Or if you absolutely need to Settings -- General -- Reset

  • My iphone 4 went something wrong please help me, when i try to re start my i phone 4 the light didn't totally turned black. and when i took out my sim card i can see the light inside, what should i do to turned on back again

    Some please help me. I tried to re start my iphone 4, but it went something wrong. instead of it turned black and tunred on again. it like a gray color. When i took out my card i can see the light inside it. what should i do turned it back on again..

    At the AT&amp;T store. Tried using iCloud but only 120 songs were transferred and when I access my iTunes account now it only shows 120 and not the 450 anymore that I purchased on my old phone. Tried to sync again from the phone to iTunes and it still not working.
    I purchased everything under the same apple ID account I called apple support and spent almost 2 hours with tech support for assistance and we got disconected and they never called me back.
    I'm at the point where I'm about to never purchase anything anymore from apple go to another company retrieve every single charge made on my bank account from iTunes and file a law suit against the company. It's being a week that I called for assistance and no one called me back to help me with this matter even after I responded a survey with a complaint about not getting a resolution to my problem.
    If you could please help me I will appreciate, I'm out of the country now and can't stay on the phone for a long time.
    I need to sell my old phone but as right now besides all my bank statements the old phone is the only evidence that I purchased the songs.

  • After EFI Firmware update 2.3, MBP Early 2011 will not boot. During restart it all went wrong please help!

    Hello,
    I've done an ample amount of Internet research to find an answer to this problem however nothing yet found is quite like this. I will start from the beginning.
    I am traveling through Europe, and I normally live in California. When I arrived in Ireland my MBP early 2011 15 inch, began crashing constantly when I had several tabs open on Chrome and maybe one or two low CPU/Memory using applications, nothing the 8gb RAM &amp;750gb hard drive can't normally handle. Thus I began trouble shooting.  I ran disk utility once started up and repaired both disk and permissions. Still crashing. It didn't seem like it had anything to do with a kernel panic shut down, I never would receive the usual message indicating so. After that I did an SMC reset. It was still crashing. I then upgraded the OSX from 10.8 to 10.8.4 believing it could help. It did momentarily, but then crash again. (When it crashes screen goes black suddenly and upon pressing power button does a regular boot on my single partition). I decided attempting to repair using the Internet recovery option but it appeared my MBP had not yet have it installed, so I downloaded from Apple and began installing. Here I made a mistake, I unplugged the power source as it was restarting. When the gray screen and apple appeared, the loading bar shows up as it says it will when installing the update, but when the bar fully loads it crashes every time. I've tried starting in safe mode, which then loads but never goes further (I let it stand for two hours such as that and nothing). Then I decided to allow the MBP to fully charge overnight to give it time and charge. This morning the problem has stayed the same, even with power source plugged in. Please help I need this to work.
    Thank you and please ask any questions!

    Your constant crashing problem is probably some type of hardware fault which no update can fix. Doing the 10.8.4 update and then the firmware update just caused further problems. you need to take thr system to a apple store to be diagnosed and fixed if cost effective.

  • I went to use my Itunes and suddenly i get files cannot be located ..do you want to locate .. well i cannopt find them what Happened they were al working before did i hit somethin or do something wrong please help have over 1700 songs missing

    I went to use my itunes music which i have had for years ..Suddenly they are all gone .. leaves a message cannot not be located would you like to locate .. I say yes and they cannot be found this is a list of 1700 songs .. Please help me .. where did they go?  And why! .. Need help desperately .. Must fix this ... Hope just a button i hit!   Thank you   ... 
            Jelliapple@ Optimum.net   ...

    Look in Windows Explorer, Music Library, My Music, iTunes, iTunes Media, Music which is where your library should be located. If it isn't there make sure you have the first two items on the advanced tab of the preferences ticked, then on the file menu select Library and Organise Library which should put all music remaining on your PC into the iTunes library. 
    Alternatively, if you can find where the music has become relocated to, move it into the automaticall 'add to iTunes' folder within itunes Media and it should then go back into your library.

  • What is wrong please help?

    Hi,
    I am really confused. I added spry to a registration form on my site.
    I just loved the way it colors boxes and makes the page come alive if you get me.
    Sadly this is not the case for me
    I basically select my textbox for example then add spry textbox to it, setup the conditions such a minimum fields etc, then make sure the path to the spry folder is correct and upload.
    all i get it the text showing next to box saying things such as:
    A value is required.Minimum number of characters not met.Exceeded maximum number of characters.
    I get this before i even click on the box and enter anything in. It also does not change color of boxes from like red to green etc and show textbox data being valid.
    basically everything is the same apart from i get text next to the boxes on my form.
    Am i missing something here? it driving me buts. I want it so it something like:
    http://labs.adobe.com/technologies/spry/samples/validationwidgets/ConfirmValidationSample. html
    I double checked path to SpryAssets folder and double checked everything uploaded but nothing different happens just what i said above.
    i have attached a picture of what my form looks like, it horrible as it not working.
    Please help
    thank you
    also is there a problem with this forum and firefox? i am using latest version 3.0.10 and everytime i tried to created a new topic it kept crashing FireFox. I sent a crash report to FF, but thought i would mention it incase it this site.

    All sorted, it seems i could not specify the path had to specify via url method.

  • Simple code, but wrong, please help.

    I wrote the follow code. When I call it in another class but no disaply. What happens? Please help me to correct it. Thanks.
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class tempStr extends JApplet{
    final static Color bg = Color.white;
    final static Color fg = Color.black;
    String str;
    tempStr(String string){
         str=string;
         JFrame f = new JFrame("string draw");
            JApplet applet1 = new tempStr(str);
            f.getContentPane().add("Center", applet1);
            applet1.init();
            f.pack();
           f.setSize(new Dimension(400,400));
            f.show();
        public void init() {
            setBackground(bg);
            setForeground(fg);
    public void paint(Graphics g) {
      Graphics2D g2=(Graphics2D)g;
        g2.drawString(str, 40,160);
      }

    It would be better to move the creation code into some dedicated method:
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class tempStr extends JApplet{
        final static Color bg = Color.white;
        final static Color fg = Color.black;
        String str;
        tempStr(String string){
            str=string;
        public void init() {
            setBackground(bg);
            setForeground(fg);
        public void paint(Graphics g) {
            Graphics2D g2=(Graphics2D)g;
            g2.drawString(str, 40,160);
        public static void main(String argv[]) {
            JFrame f = new JFrame("string draw");
            JApplet applet1 = new tempStr(argv[0]);
            f.getContentPane().add("Center", applet1);
            applet1.init();
            f.pack();
            f.setSize(new Dimension(400,400));
            f.show();
    }To lauch the applet from command line:
    java tempStr "Hello world"

  • 8330 not pushing my GMAILS to the phone? something is wrong- Please help-- i have tried everything!

    PROBLEM: My 8330 is not pushing my gmails to the phone. i get 1 out of 4 messages pushed to the phone. i re-sent service books, i deleted and re-added gmail to my bb (thru BIS). I deleted the gmail off my outloook as well from my PC.
    I downloaded GMAIL for blckberry from Google and that works but i like my gmail to be combined in my inbox.
    I need a blackberry expert help on this.
    VERIZON support has not been able to solve this.
    ADDITIONALLY the gmail filter for duplicate messages is not working on my blackberry either, meaning the messages i send from gmail.com or from my BB come back immediately as duplicates.
    I have had 10 blackberry's so i am not novice, PLEASE HELP!!
    This is sooooo Frustrating!
    Thank you in advance!
    Helfy
    Solved!
    Go to Solution.

    Are any of the emails you DON'T receive being received in your Outlook? In other words, is there any correlation between your missing BB emails and those you do receive in Outlook?
    IF you are using Outlook to download your email to your desktop PC, Outlook is likely "deleting" mail from your email server when it downloads it to your PC.
    There is a setting in Outlook to "Leave Messages on Server".
    For MS Outlook 2003:
    1. Outlook > Tools > Email accounts > View or Change existing > next.
    2. Highlight the email account > Change > More Settings.
    3. Advanced Tab > Leave a Copy Messages on Server
    4. Check that box.
    * You will need to perform this edit for each Outlook email account you have.
    Other versions of Outlook have a similar setting although it might located in a slightly different location in the :advanced settings.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Installing FMS,goes wrong,Please Help Me.Thank You!

    Hi,while im installing FMS,it goes wrong,i pasted the sceen below.pls help me.
    I dont know why.
    My Os:FC14_X86.
    Proceed with the installation? (y/n/q): y
    /opt/adobe/fms ~/FMS_4_0_0_r1121
    Server:fms command:stop
    sed: -e expression #1, char 6: unknown option to `s'
    ./server: line 41: /etc/SUSE-release: No such file or directory
    ./server: command substitution: line 46: syntax error near unexpected token `elif'
    ./server: command substitution: line 46: ` elif [ -f /etc/mandrake-release ] ; then'
    sed: -e expression #1, char 14: unknown option to `s'
    sed: -e expression #1, char 9: unknown option to `s'
    WARNING: Your Linux distribution, RedHat i686  is not supported by this
              installer.
    1024
    WARNING: FMS requires the maximum number of processes > 32K.
             Adjust ulimit to match system requirements.
    NPTL 2.13
    Stopping Adobe Flash Media Server (please check /var/log/messages)
    Server has shutdown...
    Admin server:fmsadmin command:stop
    sed: -e expression #1, char 14: unknown option to `s'
    ./adminserver: command substitution: line 45: syntax error near unexpected token `elif'
    ./adminserver: command substitution: line 45: ` elif [ -f /etc/mandrake-release ] ; then'
    sed: -e expression #1, char 9: unknown option to `s'
    sed: -e expression #1, char 6: unknown option to `s'
    ./adminserver: line 40: /etc/SUSE-release: No such file or directory
    WARNING: Your Linux distribution, RedHat i686  is not supported by this
              installer.
    Stopping Adobe Flash Media Admin Server (please check /var/log/messages)
    Admin Server has shutdown...
    ~/FMS_4_0_0_r1121
    Installing Adobe Flash Media Server files...
    Configuring Adobe Flash Media Server...
    Adding "fms" service.
    Setting default admin to "fms".
    sed: -e expression #1, char 14: unknown option to `s'
    ./installFMS: command substitution: line 204: syntax error near unexpected token `elif'
    ./installFMS: command substitution: line 204: ` elif [ -f /etc/mandrake-release ] ; then'
    sed: -e expression #1, char 9: unknown option to `s'
    sed: -e expression #1, char 6: unknown option to `s'
    ./installFMS: line 199: /etc/SUSE-release: No such file or directory
    Setting autostart for "fms".
    Server:fms command:start
    ./server: command substitution: line 46: syntax error near unexpected token `elif'
    ./server: command substitution: line 46: ` elif [ -f /etc/mandrake-release ] ; then'
    sed: -e expression #1, char 14: unknown option to `s'
    sed: -e expression #1, char 9: unknown option to `s'
    sed: -e expression #1, char 6: unknown option to `s'
    ./server: line 41: /etc/SUSE-release: No such file or directory
    WARNING: Your Linux distribution, RedHat i686  is not supported by this
              installer.
    1024
    WARNING: FMS requires the maximum number of processes > 32K.
             Adjust ulimit to match system requirements.
    NPTL 2.13
    Starting Adobe Flash Media Server (please check /var/log/messages)
    Admin server:fmsadmin command:start
    sed: -e expression #1, char 14: unknown option to `s'
    sed: -e expression #1, char 6: unknown option to `s'
    ./adminserver: command substitution: line 45: syntax error near unexpected token `elif'
    ./adminserver: command substitution: line 45: ` elif [ -f /etc/mandrake-release ] ; then'
    sed: -e expression #1, char 9: unknown option to `s'
    ./adminserver: line 40: /etc/SUSE-release: No such file or directory
    WARNING: Your Linux distribution, RedHat i686  is not supported by this
              installer.
    Starting Adobe Flash Media Admin Server (please check /var/log/messages)
    The Adobe Flash Media Server installation is complete.

    Hi ,
    Thanks for trying out FMS 4, but as you can see in the warnings, your linux distribution is not officially supported for FMS and hence there might be unknown issues blocking the proper installation. There are dependencies that might be missing on your distro.
    Anyways, as mentioned in the logs, did you try changing the ulimit settings  ?

  • Part of my scren isblack and grey whats gone wrong please help

    part of my screen is black and grey whats gone wrong ? Please Help

    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Plugin not working with firefox 4.0.1 showing an compatibilty error however it is getting installed in Firefox 3.6 successfully. Dont know what is going wrong please help on urgent basis

    Hi,
    Plugin can be loaded from the link below. This is getting installed on the firefox 3 version but each time I install it on Firefox 4 version it shows the compatibilty error. I have disabled the compatibilty check for firefox in default:config setting but still getting the same error. Please resolve asap.
    Thanks in advance

    That extension has a maxVersion of 3.*.* (3.0.* in update.rdf) and can't be installed in Firefox 4.
    <pre><nowiki><em:minVersion>1.5</em:minVersion>
    <em:maxVersion>3.*.*</em:maxVersion></nowiki></pre>

Maybe you are looking for

  • Does anyone know what BTMMPortInUseAgent.plugin is?

    Hello, I am new to the forum... as well as to macs... i just recently bought a mac mini and it was running fine, until i noticed two things. 1... that there was a "UserEventAgent - not responding" showing in my activity monitor and 2. that the startu

  • Adobe blocked plug-ins

    I have just found that access to a You Tube video was blocked due to a security issue with Adobe plug-ins. I was recommended to update Adobe which I duly did and am still getting the same message. Any ideas? Kathy

  • User "wlisystem" has not been assigned task "Task 1"

    Hi, I am having problems executing a task thro' Worklist JSP. My env. is WLS 7.0 on Windows NT. I can do a Start Workflow and then click on the appropriate template. Then, when I click on the task, I get the error (see below) Any help please? This us

  • Creating Dynamic Lists

    Hello All, Does anybody know of a script that will allow me to add new Textfield instances that are populated with Data from another Textfield that can also be removed?  I've been racking by brains trying to figure out how to do this but whatever ins

  • Can I read and edit microsoft office documents on my iPhone?

    Can I read and edit microsoft office documents on my iPhone? such us: word (.doc), excel (.xls), powerpoint (.ppt), etcetc... Thanks! Jp