permaculture playing cards*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes String Encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "String Encoding" Watch "String Encoding" New topic
Author

String Encoding

John Grabowsky
Greenhorn

Joined: Dec 30, 2008
Posts: 26
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.


John<br />SCJP 5, 97%
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Not really. Maybe that means you shouldn't allow non-ASCII characters to be entered to begin with?


Ping & DNS - my free Android networking tools app
John Grabowsky
Greenhorn

Joined: Dec 30, 2008
Posts: 26
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.
 
Consider Paul's rocket mass heater.
 
subject: String Encoding