-
Which of the following encoding an XML parser assumes?
-
- UTF-8
- UTF-32
- Both UTF-8 and UTF-32
- UTF-16
- None of these
Correct Option: C
Basically parsers are used in softwares and they convert user data into machine data in short in memory form to use. In XML, parser is used to read XML. If an XML document lacks encoding specification, an XML parser assumes that the encoding is UTF-8 or UTF-16.