• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A few questions

 
Vibha Verma
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. What is the default value for the attribute - encoding (UTF-8 or UTF-16)in the XML declaration?
2. The datatype DOMString, used in the DOM belongs to UTF-8 or UTF-16?
Thanks.
Vibha.
 
Manikandan k
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Default encoding is UTF-8.
 
Rakesh Gudur
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vibha,
Answer for second question is UTF-16. And I think the first one is also UTF-16, because as per XML recommendation, the encoding used is UTF-16
Reg,
Rakesh.
 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, for both question 1 and 2, the answer is utf-16
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic