aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: UTF-8 or Default