Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String Encoding

 
John Grabowsky
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi fellow rangers,

im working on B&S 2.3.1. The spec of the DBMain interface requires an update method accepting an String array, one String for evry field of the record to update. The spec of the DB file says that only ASCII can be stored. Is there a standard way to convert if the method is called with Strings containing chars other than ASCII?

Tanks.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really. Maybe that means you shouldn't allow non-ASCII characters to be entered to begin with?
 
John Grabowsky
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

thanks for prompt reply. Sure, I would validate input accordingly. But i think the DBMain Interface must work anytime, whether it is called by my business logic or not.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic