Hi.
I'm trying to parse in c# DotNet a xml file (file.FullName) that as no encoding type, and one of the tag is compose with 'ç' or 'é' or 'ã'
but in the c# DotNet declaration of the var new_s those characters not appear !
See example:
xml file.FullName:
---------------------------------------------------------------------------------------------
<?xml version="1.0" ?>
<XML_CLASS>
<Report>
<![CDATA[serviço , or, Coronárias
]]>
</Report>
</XML_CLASS>
C#:
XmlSerializer s = new XmlSerializer(t ypeof(XML_CLASS ));
StreamReader stream = new StreamReader(fi le.FullName);
confFile = (XML_CLASS)s.De serialize(strea m);
string new_s = confFile.Report .ToString();
---------------------------------------------------------------------------------------------
In string new_s the characters 'ç' or 'é' or ' í ' or 'ã' not appear!
Can someone help me?
Thanks to all.
I'm trying to parse in c# DotNet a xml file (file.FullName) that as no encoding type, and one of the tag is compose with 'ç' or 'é' or 'ã'
but in the c# DotNet declaration of the var new_s those characters not appear !
See example:
xml file.FullName:
---------------------------------------------------------------------------------------------
<?xml version="1.0" ?>
<XML_CLASS>
<Report>
<![CDATA[serviço , or, Coronárias
]]>
</Report>
</XML_CLASS>
C#:
XmlSerializer s = new XmlSerializer(t ypeof(XML_CLASS ));
StreamReader stream = new StreamReader(fi le.FullName);
confFile = (XML_CLASS)s.De serialize(strea m);
string new_s = confFile.Report .ToString();
---------------------------------------------------------------------------------------------
In string new_s the characters 'ç' or 'é' or ' í ' or 'ã' not appear!
Can someone help me?
Thanks to all.
Comment