Thanks Erel,
Modified sample works fine and I see the point ... My writing to file was a try to debug ... but may be worst
Nevertheless, as I said at the top of the post, my app is reading/concentrating dozens of RSS feeds.
Some feeds have "<?xml version="1.0" encoding="iso-8859-1"?>", while some have "<?xml version='1.0' encoding='UTF-8'?>", and other encodings ...
What I would like is a way to "capture" this encoding before "tr.Initialize2" to make the function independant from the xml source encoding ...
Do you think there is a nice way to do this ?
Thanks in advance