Odd character when retrieving a string from a HashMap

From: rabbits77 (rabbits77_at_bigmailbox.net)
Date: 10/21/03

  • Next message: Christopher Blunck: "Re: J2EE and File"
    Date: 21 Oct 2003 14:20:40 -0700
    
    

    I am storing a string in a HashMap.(i.e. it is the value in a
    key/value pair where the key is some other string). On one jvm version
    (1.4.1_01 on windows) I get the string back fine. On another(1.4.2 on
    solaris) I get this weird character that is printed to the terminal as
        ?1.00
    The real value of the String is "--". Some of the other String values
    in the HashMap are of the form X.XX where X is a digit, though which
    makes things even stranger.
    Anyone have any idea what this odd character is and what is making it
    some up? I kept trying to google for this but no search results are of
    any relevance.
    I have tried different compilers(i.e javac vs jikes which I usually
    use) but that hasnt(nor should it) make a difference.
    Help!!


  • Next message: Christopher Blunck: "Re: J2EE and File"

    Relevant Pages

    • Re: Odd character when retrieving a string from a HashMap
      ... > key/value pair where the key is some other string). ... > Anyone have any idea what this odd character is and what is making it ... Please post example code that exhibits the differing behavior. ... not munged in transit between the two machines (some file transfer ...
      (comp.lang.java.developer)
    • Web.Config and appSettings tag
      ... I am storing a database connection string in a key/value pair in the ... The values are encrypted using the encryption available in .NET. ...
      (microsoft.public.dotnet.framework.aspnet.webservices)
    • Re: String.valueOf() Memory Leak inside of thread.
      ... i.e. the string might not yet have been created when gc ... Regarding number 1, using the NetBeans profiler, I'm seeing that each ... GC is a quite complex process and the short story is that the JVM is pretty free as to /when/ do GC and /which objects/ it will collect. ... The reference path is the other way round, the char[] inside the String is referenced via the Thread. ...
      (comp.lang.java.programmer)
    • Re: Array Initial data gives code to large error
      ... possible elements and class type elements. ... I think you are not understanding the way that Java (or the JVM) works. ... have a string in your program, then the route it takes to get into the runtime ... JVM finds classfile in some JAR. ...
      (comp.lang.java.programmer)
    • Re: File.lastModified *extremely* slow ?
      ... > ensured depends on the String implementation [not on the VM ... String interning /is/ done by the JVM -- in the discussion afterwards ... he talks of the interned String data being kept outside the heap. ... implementation is simple-minded and does not reclaim interned Strings, ...
      (comp.lang.java.programmer)