Extended characters not getting through VM properly in JDK1.4 versions

This is on WIndows platform with regular US keyboard.
When you type "ALT+0252" (it is �) from your regular (English) keyboard using it's numeric keypad, somewhere in the VM there is translation happening that is converting the numeric value of 252 to 242 and there by displaying the character mapped to ALT+0242 (which is �).
Similarly, every other extended character is getting translated somewhere thereby displaying the wrong character.
The way to look at Character Map on Windows platform is Start|Programs|Accessories|System Tools|Character Map.
Best way to compare what is getting through VM is by running
regular Notepad (Start | Programs | Accessories | Notepad) and typing
above character and then running the Notepad that comes with J2SDK install (java -JAR JDKInstallDir\demo\jfc\Notepad\Notepad.jar) and typing the same character.
You will notice that the regular Notepad displays � when you type ALT+0252 but the java Notepad displays � when you type the same ALT+0252 character.

Here is the sample code. You can first run it in jdk1.3 environment and enter the extended characters in the textfield. You will notice that they get rendered correctly (such as ALT+0252 gets rendered as �)
Then try running the same applet in jdk1.4 environment and enter the same extended characters in the textfield and you will notice the difference. ALT+0252 will now get rendered as � which is not correct.
JComponent class in JDK1.4 seems to be translating the string some how before rendering it.
Please let me know if you have any ideas or suggestions on this weird behavior in JDK1.4. Thanks.
import javax.swing.*;
import java.applet.*;
import java.awt.event.*;
import java.awt.*;
public class DemoApplet extends JApplet
public JTextField jtf = new JTextField ("Testing");
public String text = "";
public void init()
jtf.addActionListener (new ActionListener() {
public void actionPerformed(ActionEvent e)
text = ((JTextField)e.getSource()).getText();
try {
System.out.println ("numeric value of text is : " + (int)(text.charAt (0)));
catch (Exception ex)
ex.printStackTrace ();
JPanel pan = new JPanel ();
pan.add (jtf);
pan.validate();
getContentPane().add (pan);

Similar Messages

  • SMS messages not getting through

    using iOS 5.0.1 on a 3GS.  If I have iMessaging turned on and I text someone who has a phone other than an iPhone, they don't get the text.  I DO have the "Send as SMS when iMessage is unavailable" button checked.  I also DO select the person's mobile phone number, NOT their email, when I'm texting them.  I have experimented several times just now with a friend and they are NOT getting texts from me.  This seems like an awfully basic, awfully serious, awfully annoying bug. 
    I am now in the middle of experimenting to see if I can text at all if it's not iMessaging.  I have turned iMessaging off, and as far as I can tell my texts are STILL not getting through.  So, as far as I can tell, there is no way for me to text now.  What's the problem?
    Rich R.

    @Rich,
    I'm on Fido/Rogers (Canada) not AT&T, so my experience may not be applicable. But I have found in the past that older versions of SIM cards would not work properly in newer phones, and vice versa. Not just iPhones, but in general. SIM cards have different capabilities, varying amounts of internal memory, and different interface specs.  It's plausible that the vintage of SIM that shipped with your 3G (or whatever you had before) might be slightly incompatible with the 3GS.
    Another gotcha that I've encountered is the phone number (server address) of the SMSC that is programmed into the SIM. Large wireless carriers often (usually) have a number of different SMSCs distributed around their network. It's possible that they changed your designated SMSC. If your SIM still points at the old SMSC (and AT&T has moved you to a different one), that might explain your SMS problems. On the other hand, if the SIM you are using is the one that shipped from AT&T with your 3GS, then this is probably a red herring. Still, I think it would be useful to put the SIM into a non-iPhone and see if you can send/receive texts, just to verify that it's not a network problem.
    Programming of the proper SMSC into one's SIM card can be done over the air -- the carrier sends a specially-formatted SMS message to the phone, and the phone then updates the data in the SIM card. You might call AT&T and ask them to do so.
    I'm grasping at straws here. SIM vintage and/or SMSC configuration might have nothing to do with your problem.
    DRC

  • I use more than one computer to access my four business email accounts. When one computer is on (and mail is open) emails do not get through to the other computers. This is fine, but how do I make one of the other computers the dominant one?

    I use more than one computer to access my four business email accounts. When one computer is on (and mail is open) emails do not get through to the other computers. This is fine, but how do I make one of the other computers the dominant one?

    I assume these are POP accounts and all computers are set to remove from Server after downloading.
    So on the non dominant ones... Mail Preferences>Accounts, highlight an account, Advanced tab, uncheck remove from Server, just have the main dominant one remove from server.
    Or get/setup IMAP accounts.

  • HT4623 My texts have stopped getting through to one of my contacts. I can phone him and I can receive his calls and messages. I am the only one of his contacts whose  texts are not getting through. We have both restarted our iphones but the problem contin

    My texts have stoipped getting through to one of my contacts. I can phone him and I can receive his calls and messages. I am the only one of his contacts whose  texts are not getting through. We have both restarted our iphones but the problem continues.

    Have you talked to your carrier (or your friend to his)?  Could be an issue at their end.

  • Hello, I have a Macbook pro retina-2013.  About Mavericks I could set my 4K monitor via HDMI on 2560x1440.  This I can not get through at Yosemite. Can someone help me there?

    Hello, I have a macbook pro retina-2013.
    About Mavericks I could set my 4K monitor via HDMI on 2560x1440.
    This I can not get through at Yosemite. Can someone help me there?

    They really pushed that it would all work great! Has anyone had the same struggle? Are there any step-by-step instructions to get linked up?
    Call Verizon's wireless tech support & explain your problem to them.  They will provide "step-by-step" instructions over the phone. 
    Take notes too!
    TIP:  If you do call & don't want to go through all those darn promps, when you initially call, just don't say anything.  The automatic voice will then say,  "will connect you to a service rep."

  • HT1338 I have macbook without a firewire port, I have usb 2.0 port, now my os is not working I can not get through apple logo loading , I can not enter safe mode, I can only enter one user mode, how can I backup my data, I have very important data in my h

    I have macbook without a firewire port, I have usb 2.0 port, now my os is not working I can not get through apple logo loading , I can not enter safe mode, I can only enter one user mode, how can I backup my data, I have very important data in my hdd

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • 3ds can not get through my wpa2

    Not sure if anyone can offer any suggestions but my daughters 3ds can not get through the wpa2 security to access the Nintendo wifi network.  Anybody have any suggestions as to how we can get by this?

    loper wrote:
    Not sure if anyone can offer any suggestions but my daughters 3ds can not get through the wpa2 security to access the Nintendo wifi network.  Anybody have any suggestions as to how we can get by this?
    The following links may help.
    http://en-americas-support.nintendo.com/app/answers/detail/a_id/499/p/48/session/L3RpbWUvMTM3NjMzMTc...
    http://www.nintendo.com/consumer/wfc/en_na/ds/firewall.jsp
    If neither of these resolve the problem you should contact Nintendo customer support.

  • How can i recover my admin name and password from my i mac. i could not get through to it.

    how can i recover my admin name and password from my i mac. i could not get through to it.

    What do you mean "I could not get through to it" Are you trying to login remotely?

  • I am not getting any notification sounds for facebook version 47423

    I am not getting any notification sounds for facebook version 47423.  Also, how do you change your email address in your profile here in the forum?  Thanking you in advance.

    Try going to setting and go down to facebook. See if you can change anything there. If you can't then go to Sounds(in settings) and try looking for facebook there. i havn't had this problem but that is about the right steps to solving it

  • Some outgoing e mails are not getting through

    Some of the people I e mail are not getting any of my e mails. I use the verizon e mail online not outlook express or any other software. Most of my e mails are getting through but not all. Anyone have an idea why this could be happening? It's not that my e mail is blocked on the other end. One of the recipients is my dad and he isn't getting my e mail. I walked him through his setup and he does not have me blocked and I am in his address book.

    Is there a particular domain you are having trouble with? Are you getting any delivery delay/failure messages?
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Mail not getting through to my .mac address

    Everyone trying to send mail to my .mac address ([email protected]) is getting mail bounced back with this message:
    "You do not have permission to send to this recipient."
    What the heck is this all about? Sometimes mail gets through, but not often. Everyone is getting the same message.
    How can I fix this? Help, please.
    Paul Kirtley, [email protected]

    Chris,
    This topic did appear to be about sending, but yet the advice about Port number change would only relate to sending problems. If you are having a problem sending, while using the smtp.mac.com as the Outgoing Server, the change to Port 587 may help. This is covered in both Mail Help, and at the document at the link below:
    http://docs.info.apple.com/article.html?path=Dotmac/Mail/en/mac31.html
    If this does not help, please provide more information about your individual problem.
    Ernie

  • Can not get through to (800) COMCAST 934-6489

    Unable to get through to COMCAST, says line is disconnected or call can not be placed.  Customer Service?  Have been without internet service for over 6 hours.  Any suggestions?

    kristilynn100 wrote:
    Unable to get through to COMCAST, says line is disconnected or call can not be placed.  Customer Service?  Have been without internet service for over 6 hours.  Any suggestions?
    I apologize for the trouble you had with this. Were you able to get through, if not send me a private message with a few details of the issue. I might be able to help out. -FC 

  • Email not getting through to my account

    For the last 24 hours or so I have been experiencing problems when users in Europe have unable to send me emails using my @me.com,@mac.com or @icloud.com accounts.
    Is anyone else getting this issue please?
    Thx John

    If you are not getting the email, you can contact Apple Support to have your Security Questions reset:
    ACCOUNT SECURITY CONTACT NUMBERS
    Once you get them reset, check your Rescue Email address on Manage Your Apple ID to make sure it is still a functional address. It is not the same as your primary or alternate address.
    Cheers,
    GB

  • Team invitation email not getting through?

    I have a team and have invited users to seats that I have purchased but they are not getting the invitation emails. I have tried Adobe support on the phone but I dont have two days spare to stay on hold and then be cut off!

    If you do a search of the forum for  "email mac" you will find plenty of others who had/have the problem and just about as many answers as to how to fix it.
    Sometimes just leaving it alone is the best answer and the email sorts itself out.
    Have you tried accessing your email via your BTYahoo webmail? If you have use that meantime. 

  • Not getting the output properly

    i am entering the command, not get the total out put
    see the output what i am getting.
    SQL> select dbms_metadata.get_ddl ('TABLESPACE','SYSTEM') FROM DUAL;
    DBMS_METADATA.GET_DDL('TABLESPACE','SYSTEM')
    CREATE TABLESPACE "SYSTEM" DATAFILE
    '/u0101/oradata/GFSSS1/system01.dbf' S
    SQL>
    can u please suggest me , which perameters i have to set.

    i want ouput from my machine, not from OEM.
    see the output message,
    SQL> set pages 1200
    SQL> set lines 120
    SQL> select dbms_metadata.get_ddl ('TABLESPACE','SYSTEM') FROM DUAL;
    DBMS_METADATA.GET_DDL('TABLESPACE','SYSTEM')
    CREATE TABLESPACE "SYSTEM" DATAFILE
    '/u0101/oradata/GFSSS1/system01.dbf' S
    SQL>

Maybe you are looking for

  • Error while creating a stock

    hi gurus, while i creating a stock in mb1c an error pops up mat.is a miss.part. mrp controllers KUNITZ will be notified KINDLY HELP ME OUT THANKS

  • I can't see all my pictures from my camera roll in photos, what is happening?

    I can't see all my pictures from my camera roll in photos, what is happening?

  • Exposing as Web Services

    I have checked with weblogic Server 8.1, supposing exposing Java Components as web services. I have checked with the examples.It is quite easily achievable. But what i want to know as what mentioned in http://www.javaworld.com/javaworld/jw-08-2004/jw

  • Error "_blank is undefined" for a new popup jsp page opening from a button

    Added a new button, by personalization to a self service page. The new button on click should open a new jsp page. The jsp page is opening properly on the same page if I remove the blank from the target frame property. For opening the jsp page on a n

  • Itunes 6.0.2

    I just reloaded OS 10.4.7 on my iMac 17" (Intel Core Duo 1.83 Ghz).  I ran all software updates, and iTunes is set at 6.0.2 (23). It is not permitting me to access the iTunes Store.  My internet connection is working fine. What to do? sue