This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 41133
    
  45
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: String Encoding
 
Similar Threads
Strings
Locking a record
Mock Exam Questions (null)
Reading the binary db file
conversion types