File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UTF-8 or Default
 
Similar Threads
A few questions
Linefeeds don't work
Encoding in Java file
Frustration of encoding issues in Java
convert uft-8 into ascii format