Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The � is stronger than the $

 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to update a record in the data file in order to test my update method. The method works fine except when writing '�' (under hourly charge). This appears as a minus number when viewed. The reason is that although '$' is part of the ascii table us Brits aren't so lucky. i assume I'll have to use only dollars when writing to the file.
 
Chulwoo Choi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The character encoding is 8 bit US ASCII for the field values. So you don't have to worry about the British pound symbol.

Chulwoo
 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic