hhhhh 2 Answer(s) 4 years and 9 months ago
Posted in : Java Beginners
View Answers
August 27, 2008 at 3:38 PM
Hi friend,
Some points to be remember :
<?xml version='1.0' encoding='UTF-8'?>
*)XML provides the XML declaration for us to label documents as being XML. *)The XML declaration starts with the characters <?xml, and ends with the characters ?>. *)If you include it, you must include the version, but the encoding and standalone attributes are optional. *)Unicode is a character code is used for internationalization. *)Two major character encodings for Unicode: UTF-16 and UTF-8. *)UTF-8 uses one byte for the characters covered by 7-bit ASCII *)For text written in English, where most of the characters would fit into the ASCII character encoding. *)UTF-8 can result in smaller file sizes, but for text in other languages, UTF-16 should usually be smaller.
*)XML provides the XML declaration for us to label documents as being XML. *)The XML declaration starts with the characters <?xml, and ends with the characters ?>. *)If you include it, you must include the version, but the encoding and standalone attributes are optional. *)Unicode is a character code is used for internationalization. *)Two major character encodings for Unicode: UTF-16 and UTF-8. *)UTF-8 uses one byte for the characters covered by 7-bit ASCII *)For text written in English, where most of the characters would fit into the ASCII character encoding. *)UTF-8 can result in smaller file sizes, but for text in other languages, UTF-16 should usually be smaller.