Re: Odd character when retrieving a string from a HashMap

From: Raymond DeCampo (rdecampo_at_hold-the-spam.twcny.rr.com)
Date: 10/28/03

  • Next message: Raymond DeCampo: "Re: IE6 Servlet Timeout"
    Date: Tue, 28 Oct 2003 01:47:53 GMT
    
    

    rabbits77 wrote:
    > 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!!

    Please post example code that exhibits the differing behavior. Also,
    please specify the environment as specifically as possible.

    Shot in the dark: if you are sharing files between the two programs
    (e.g, config files or serialized objects) make sure that the files are
    not munged in transit between the two machines (some file transfer
    programs, e.g., Windows FTP will convert \r\n to \n if the target
    machine is Unix).

    Ray


  • Next message: Raymond DeCampo: "Re: IE6 Servlet Timeout"

    Relevant Pages

    • Re: Strange Divide? Error
      ... registry entries show an empty string. ... NumberFormatInfo parameters and found that for the problem machines the ... NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: DESPERATE: FormsAuthentication Problem
      ... to hardcode a 3 element string array just for fun and see if that changes ... > I have verified that both machines are running the same version of the ... > Framework and that the web.config files are identical (except for SQL ... >> Hi Jeff, ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Puzzling program
      ... of machines where an int can't start at arbitrary addresses but ... an int can start ... It's certainly true that there's no guarantee that the string has any ... but I think most implementations do tend to ...
      (comp.lang.c)
    • Re: Puzzling program
      ... of machines where an int can't start at arbitrary addresses but ... It's certainly true that there's no guarantee that the string has any ... but I think most implementations do tend to ... store strings at a stricter alignment ...
      (comp.lang.c)
    • Re: Admired designs / designs to study
      ... the string library associated with SX1100/Amicus, ... characters of a name, so that hte string wasn't always null-terminated; ... hence the *n* routines. ... Series machines as a 36 bit *byte* pointer. ...
      (comp.arch)