Dealing with encoding problems

BTT has an XML based extensible framework and has the following methods to deal with XML file encoding problem:

So the best practice to avoid encoding problem is to make the encoding of the files consistent and define the encoding in the first line of the file.