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 UTF-8 or Default 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 "UTF-8 or Default " Watch "UTF-8 or Default " New topic
Author

UTF-8 or Default

Ramesh kumaar
Ranch Hand

Joined: Mar 19, 2002
Posts: 146
HI,
I am in my completion stage of my assignment and now I am typing design document. I have a small doubt.
Whether to use default encoding or UTF encoding in the String constructor for removing the deprecation?
As far my understanding, the default encoding used in the assingment is UTF-8, as we can see in the constructor of Data class, wherein writeUTF and readUTF methods of RandomAccessFile are used.
So that means the database is using UTF encoding? So whats harm in hardcoding UTF-8 encoding.
Suggestions please.

regards,
RameshKumar
 
 
subject: UTF-8 or Default
 
Similar Threads
Encoding in Java file
convert uft-8 into ascii format
Linefeeds don't work
A few questions
Frustration of encoding issues in Java