Why Java is  following Unicode & not ASCII standard?

Hi all,
I am new to Java as well as to this forum.
Could you please tell me why Java is not following ASCII format?
And why is it following Unicode?
Thanks,
Reni

Unicode is chosen because it's an abbreviation for Unique Ode, which means that it provides a special sort of poetry to give Java an aura of mystique, intelligence and worldliness that sets it apart from other languages.
To support languages and characters other than English.Who doesn't read/speak English, really?! And why isn't there multiple language keywords for Java. Why can't I write code en Espa?ol?
p?blico vac?o hagaAlgo(Secuencia s) {
   para(nent i = 0; i < s.longitud(); i++) {
      Sistema.fuera.impresi?nL?nea(i + " = " + s.car?cterEn(i));
}(int abreviated for "n?mero entero")
Message was edited by:
bsampieri

Similar Messages

  • Why java and adobe are not working in my mac?

    I have been trying to download Java and Adobe unsuccessfully. There were working before.
    When I check the applications the logos are there, but I can't open pages that require  Java or Adobe.
    Every time I download the programs it tells me that there where no problems with the download. When I press the bottom to verify the program it says that there was a  problem. Please Help!!!!

    IIf the strange SMS are coming from known contacts, that's normal for iMessages that don't arrive and are converted to text.  Don't know why but it happens when my bf is overseas and his company phone can't access data - the iMessages he tries to send have a lot of symbols when they come as text but none when the finally arrive as iMessages.  Usually it's mostly lots of @@@@@@.
    if you didn't buy the phone new, the previous owner may still be linked to the phone and they are his/her messages you are getting.  I have seen a lot of posts about this on various forums and can't remember the fix but it's to do with iTunes and you may need to contact the previous owner. 
    if you did buy the phone new,check with the store that it wasn't used as a demo model.  They may be able to assist you setup your messages.  If not, you may need to search for solutions online or hopefully someone else who's had the exact issue may be able to help you here.  Good luck.

  • Why would the following files not import because they could not be read?

    I Downloaded a lot of pics and all of a sudden, I get this message! (348 pics!) frustrated! I have Lightroom 4.4

    There are plenty of "help" resources right here in the LR forum, but this might help:
    https://forums.adobe.com/message/5813122
    You may not have changed the destination folder permissions. It may have always been "read only or you're selecting the wrong folder in the Import Destination path. It helps us to help you if you provide information about your system OS,etc.

  • Why in SE16 we can not  see New Data Table for standard DSO

    Hi,
    We says that there is three tables (New Data Table, Active Data Table and Change Log Table) of Standard DSO, Then Why in SE16 we can not  see New Data Table of Standard DSO.
    Regards,
    Sushant

    Hi Sushant,
    It is possible to see the 3 DSO tables data in through SE16. May be you do not have authorization to see data through SE16.
    Sankar Kumar

  • Why JTextArea.select(int,int) not Highlight in java 1.4

    Hi guys
    Does anybody know why JTextArea.select(int, int) not Highlight the selected text in java 1.4. But java 1.3 works. Does java 1.4 change to use other method to hightlight the selected text in JTextArea? Thanks in advance.
    Regards,
    Mark.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SelTest extends JPanel {
      private JTextArea area;
      public SelTest() {
        setLayout( new BorderLayout() );
        area = new JTextArea( "This is a sample text", 20, 20 );
        JButton btn = new JButton( "Select" );
        btn.addActionListener( new ActionListener(){
          public void actionPerformed( ActionEvent ae ){
            selectText2();
        add( area, BorderLayout.CENTER );
        add( btn, BorderLayout.SOUTH );
      private void selectText2(){
        area.requestFocus(); // MOST IMPORTANT
        area.select( 1, 4 );
        System.out.println("selcted : " + area.getSelectedText() );
      public static void main(String[] args) {
        JFrame f = new JFrame();
        f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        f.getContentPane().add( new SelTest() );
        f.pack();
        f.setVisible( true );
    }

  • Why java only can display GIF file not jpeg and BMP ??

    Did anyone know why java only can display GIF file not in jpeg and BMP ?? This is because the quality of GIS is not as good as Jpeg and BMP
    any code to load the display process ??
    thx guys !!!

    you can do jpegs but im not sure about bmps.
    The only thing ive noticed is that java cant support transparent jpegs, only transparent gifs
    Jim

  • Why java is not 100% oops

    Hi, All
    recently this question was asked in the interview that why java is not 100 % object oriented.....
    plz help me regarding this
    thanx inn advance...
    Ravi

    Many, many reasons. One obvious reason being that Java uses primitives. int, char, double and the rest are not objects.

  • Why java does not support multiple inheritance ???

    Hai friends ..iam new to java .. i have doubt ..plz help me
    Why java does not support multiple inheritance ???

    The reasons for omitting multiple inheritance from the Java language mostly stem from the "simple, object oriented, and familiar" goal.
    To understand multiple inheritance, the learner needs some level of expertise like virtual derivations etc in c++. Multiple inheritance will allow method duplication, and throws the learner into confusion which method might be called by the compiler in which scenario at run time.
    Even though this answer seems to be funny, this is the actual reason why java omitted multiple inheritance of classes.
    But java support multiple inheritance of interfaces. Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement those inherited methods.

  • Why sun leader do not think about  "Why Java Web Start not be used widely"

    {color:#ff0000}Why sun leader do not think about "Why Java Web Start not be used widely"
    {color}
    Java Web Start was instruduced in jdk1.2, it's about ten years ago,But it's still not widely used--WHY?
    it's not because the design, it's becasue the code--the garbage code-- even the last version not work in many user computers,
    just not work suddendly -- noboday know reason--- if you do not believe, please google internet, many people suffered and suffering from web start!
    It's incredible that a famous big company like sun can not resolve an deployment problen in ten years that some very small company can do good work in much more short time !!!
    That' sun-- always say and design good things, then publish trouble and pain to their users. I really do not know what the sun's engineers are doing in so
    many years! -- why they do not know deployment is so important than others -- if deployment work fine, then the wrong thing can be correct easy !
    Sun, please do an famous big company -- give happy to user rather than pain !!! Please give us -- your users an stable and fast java web start to save us.
    {color:#ff6600}(Note: I use java web start to depoly our application, then receive endless complains, not work, slow and so on. now, we has no way just to give it up--design ourself's deployment-- that's also done by many pained people---just google it){color}
    Here is an desing suggestion:
    Client-end should be simple and stable, should let the server-end do complex thing .(now sun do opposite thing, they make Client-end complex, but server simple) ---it's because that Client-end will take widely effect on user's computer. update a few server is much more easy then update a amount of clients!
    Edited by: Jethro-Soft on Jun 30, 2008 8:49 PM
    Edited by: Jethro-Soft on Jun 30, 2008 8:52 PM

    Please check:
    http://joust.kano.net/weblog/archive/2006/04/06/why-i-will-never-deploy-with-java-web-start-again/
    http://kylecordes.com/2006/04/08/auto-update-no-web-start/

  • Why java does not force to declare atleast one abstract method

    hi,
    i can define an abstract class without declaring any abstract method in that class. But why wud i do this ? i mean when i have decided that a particular class should be inherited by other subclass and subclass should porvide implementation then there should be atleast one method in the abstract super class which requires implementation.
    All i want to know is why java does not force to declare atleast one abstract method in abstract class.
    there may be some situations where this restriction can create problem if it is like that then can anybody give some example.
    manish

    hi,
    i didn't get u.
    u r trying to say that i have an abstract class with
    only static methods then my questions is why wud
    declare such a class as 'abstract' class? because a
    static method can't be abstract also. Even then if
    somebody want to define such a class with only static
    methods then compiler should force him to declare
    atleast one abstract method which can be implemented
    by subclass, because as i said before if sumbody
    decide to define a class abstract then he wants that
    it should be inhereted but as u r saying a class with
    only static methods then it should not be an abstract
    class it can be a simple class.there's no functional reason, really... actually, factory-like classes are often defined the way Ceci described
    "abstract" only ensures that nobody can ever get an instance of that class (as a matter of fact, what would be the point of getting an instance, if no instance method exists ?)

  • HT1766 Whenever I try to backup my ipad to iCloud, I get the following error message and can't work out why " the last backup could not be completed" I am connected to my wi FI and iPad off and connected to power. Please can anyone help ?

    Whenever I try to backup my ipad to iCloud, I get the following error message and can't work out why " the last backup could not be completed" I am connected to my wi FI and iPad off and connected to power. Please can anyone help ?

    In settings>general> cellular do you have it  turned ON?

  • Why is Safri not supporting standard gmail

    Why is Safri not supporting standard email? This problem started about 10 hours ago.

    Sorry -- the fact is that there doesn't seem to be any logic to what is happening -- or rather not happening.
    There are two issues and I don't know if they are related or not.
    GMAIL and MAIL:
    Works on my MacAir but NOT on my iMac. Both have OSX 10.9 with most recent updates.
    Works on my iPad with exactly the same account configuration as my iPhone... where it doesn't work.
    MAIL in general on my iMac:
    From day one with Mavericks, Mail refuses to remember my iCloud login information.
    It remembers my university's email config (@rwu.edu)
    Nothing shows up under Gmail at all but it doesn't give me the Lightning symbol to tell me there's a problem.
    Just about every morning I come back to my computer and there's an application crashed dialog box that tells me Mail unexpectedly quit and do I want to REOPEN. And when I do, I have to log in for my iCloud Mail to show up.
    I assume that crash reports are automatically going to Apple... I don't get the option to send it to you.
    Thanks in advance.
    Addendum: I hesitate to delete the Gmail account from anywhere in case the result is that I will lose my ability to read  Gmail on the two appliances where it is all working. That, and the fact that it is the end of the semester and I have 100 students emailing me everyday about last minute things and final exams. NOT the time to delete ANYTHING. But I might try next week...
    Message was edited by: roconnell123

  • Why Java not allowed Widening and auto-boxing in single expression?

    Hi All,
    I have a very small question in my mind, that I would like to put on this discussion board.
    Why Java not allowed Widening and auto-boxing in single expression?
    Like:
    short s = 10;
    Long l = s;I want to know if java allowed above expression then what problem may occur?
    I know it is not a intelligent question, However still I ask for discussion.
    Thanks advance for all viewer of this question.

    JoachimSauer wrote:
    jverd wrote:
    I didn't like it at first, but it turns out my initial complaints were pretty much unfounded. I find it quite useful. It takes a fair amount of clutter out of code. The only real problem with it is that if you're not careful, you can end up doing a lot of unnecessary bouncing back and forth between primitives and wrappers without knowing it, which could hurt performance.In my opinion the biggest problem is getting NPEs at code lines, that look completely harmless. That used to bother me too, but then, if I'm writing
    int i = getAnInteger();it's just a replacement for
    int i = getAnInteger().intValue();which would also have caused NPE.
    That is, if I'm using autoboxing properly, it's just shorthand for what I'd have been doing otherwise anyway. True, it's easy to not think about it, to forget to consider whether NPE is a possibility and what the proper approach is, but mostly, if I want int, I know it can't be null (or if it is, I should get NPE).
    And when it comes time to debug the NPE, it's no great mystery, once you know the rules.
    If you don't think of autoboxing at the right position, then you can spend hours after hours tracking down a trivial bug ... or so I've heard ;-)Even if you're not thinking about it when you write the code, when you see an "impossible" NPE during debugging, it should be an instant giveaway.

  • Why are the following not being backup?

    EtreCheck reports that the following are not backed up, what up with that?
    jmf
    Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
              /sbin excluded from backup!
              /usr excluded from backup!
              /System excluded from backup!
              /bin excluded from backup!
              /private excluded from backup!
              /Library excluded from backup!
              /Applications excluded from backup!

    That is a bug.. see
    See D10 here.
    I recommend you switch over to CCC.. it is much more reliable.

  • SetString() and Unicode to ASCII/ISO conversion

    Hi,
    I encountered next problem. My database works in ISO-Latin-1 character set. Still, if I call PreparedStatement.setString(String arg) I would expect this call would convert arg parameter to ISO-Latin-1 using standard conversion mechanism. But after some testing I found out that instead of converting Java characters Oracle's driver just skips hi-byte. So if I have character with hex code 0x2019, which is absolutely normal unicode character. Oracle's driver converts it into 0x19 code, which is not even printable character and not valid ASCII code. Java's standard CharToByteConverter gives 0x63 ('?') code, which, at least, is valid ASCII/ISO-1 character.
    And some soft reports "Invalid Character" errors encountering 0x19 and other such codes.
    Here's a fragement from Oracle's JDBC log:
    DBCV DBG2 UCS-2 bytes (10 bytes):
    20 19 20 1c
    DBCV FUNC DBConversion.stringToAsciiBytes(str)
    DBCV DBG2 DBAccess bytes (5 bytes):
    19 1c
    Has anyone encountered this problem? Has anyone found work-around?
    Checking and converting all strings before calls to setString() would be too overwhelming.
    Thanks,
    Dmitry

    You may not store a string as ASCII values.
    Any string you create is stored in Unicode.
    The first 128 elements of Unicode are the same as ASCII.
    If you want the ASCII representation of the letter "a", then:
    System.out.println( java.lang.Character().getNumericValue( 'a' ) );
    As DrClap said, there is no reason to save a string in ASCII format since it will be saved in unicode format and thus Java already knows what the ASCII values will be.
    If you want to output a string in ASCII format, do it like this:
    public Vector convert( String input ) {
    StringBuffer tmpIn = new StringBuffer( input );
    Vector tmpOut = new Vector
    for ( int index = 0; index < tmpIn.length; index++ ) {
    char tmpCharacter = tmpIn[ index ];
    int tmpValue = java.lang.Character().getNumbericValue( tmpCharacter ) );
    tmpOut.addElement( tmpValue );
    return tmpOut;
    And then display each element as you see fit.
    Fixing the bugs in this code is an exercise for the reader. If you want to do something like this, you should be thinking about why you want to do this as well as how to do this.

Maybe you are looking for

  • IMac 21.5" Maximum RAM -

    Hi- I am looking to buy an iMac 21.5". From everything I have read on the apple mac site the max ram this machine can take is 16Gb, 4x4Gb. I would like to buy it with 8Gb now and know that perhaps a couple of years down the line expand it to 16Gb. Ho

  • Artwork fails to import

    Artwork imported manually (or automatically) fails to add to the mp3 track. I have no problem with this on another platform, and the artwork shows up in Window Media ok (wav tracks) on the problematic platform. Track info adds ok (except for art) whe

  • Fixed field for numbers?

    Hello My program is to read numbers from file, and present these according to my specifications. I have succsessfully forced the output using DecimalFormatSymbols and pattern, with one exception: they do not have a fixed outputfield. I want this to b

  • 关于"指定的网络名不再可用"的问题

    服务在运行过程中不断提示"指定的网络名不再可用"(具体信息如下),有时网站无法登陆,但只要在任务栏敲两下回车,输出一串"指定的网络名不再可用"后有恢复正常. 请问是什么问题?应该如何解决?谢谢! 提示信息如下: <2004-1-30 上午11时05分03秒> <Error> <HTTP> <101083> <Connection failure java.net.SocketException: ReadFile failed: 指定的网络名不再可用. (error 64, fd 2624) a

  • DME format tree - after  test run,  not  displaying file.

    Hi experts, After creating DME format tree , I ran Test run for that. At that time for some format trees, it is displaying the file. But for some of the format trees , while running test run , the file is not displaying. Can any one help me out in th