aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39529
    
  27
Not really. Maybe that means you shouldn't allow non-ASCII characters to be entered to begin with?


Ping & DNS - updated with new look and Ping home screen widget
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String Encoding
 
Similar Threads
Mock Exam Questions (null)
Reading the binary db file
conversion types
Strings
Locking a record