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
- Previous message: Svetozar Radojcin: "Re: JTable cell selection event"
- In reply to: rabbits77: "Odd character when retrieving a string from a HashMap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Svetozar Radojcin: "Re: JTable cell selection event"
- In reply to: rabbits77: "Odd character when retrieving a string from a HashMap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|