Thursday, 1 January 2015

Why there is "encoding" attribute in XML documents?



Most XML documents, like RSS feeds, starts with a prologue:



<?xml version="1.0" encoding="UTF-8" ?>


But what i can't understand is why this is needed, because if application parses XML and reads "encoding" value, it is already reading text, decoded with application's encoding.


No comments:

Post a Comment