-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Anil_Sahu
Message 6 in Discussion


 
Hi,
 
i tried using that. Below is the sample code for doing that.
 
            XmlTextWriter xtw = new XmlTextWriter("test.xml", Encoding.UTF8);
            xtw.WriteStartElement("root");
            xtw.WriteString("©" + DateTime.Now.Year.ToString() +All rights 
reserved.");
            xtw.WriteFullEndElement();
            xtw.Close();
 
however it gives the below output.
 
<root>&amp;#169; 2007 All rights reserved.</root>
 
 
but i want the output to come as follows.
 

<root> © 2007 All rights reserved.</root>
 
i am not getting what exactly is going wrong. let me know where i am doing the 
mistake.
 
thanks and regards,
Anil
 




To: [email protected]
From: [EMAIL PROTECTED]
Subject: Re: writing "©" symbol in an xml file
Date: Fri, 15 Jun 2007 02:24:26 -0700


<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
ExternalClass EC_ThmFgColumnHeader, .ExternalClass EC_A.FrameLink, 
ExternalClass EC_A.HeaderLink, .ExternalClass EC_A.FooterLink, ExternalClass 
EC_A.LgtCmd, .ExternalClass EC_A.MSNLink
{color:#FFFFFF;}
ExternalClass EC_ThmFgTitleLightBk
{color:#FF6600;}
ExternalClass EC_ThmFgSmallLight
{color:#ff0000;}
ExternalClass EC_ThmFgNavLink, .ExternalClass EC_A.NavLink, ExternalClass 
EC_A.ChildLink:hover
{color:#666699;}
ExternalClass EC_ThmFgInactiveText, .ExternalClass EC_A.SystemLink
{color:#666666;}
ExternalClass EC_ThmFgFrameTitle
{color:#FFFFCC;}
ExternalClass EC_ThmFgTitleDarkBk, .ExternalClass EC_A.NavLink:hover, 
ExternalClass EC_A.TitleLink
{color:#CC6600;}
ExternalClass EC_ThmFgMiscText, .ExternalClass EC_A.Cat, .ExternalClass 
EC_A.SubCat
{color:#336699;}
ExternalClass EC_ThmFgCommand, .ExternalClass EC_A.Command, ExternalClass 
EC_A.LargeCommand, .ExternalClass EC_A.MsgLink
{color:#003366;}
ExternalClass EC_ThmFgHeader
{color:#333333;}
ExternalClass EC_ThmFgStandard, .ExternalClass EC_A.SystemLink:hover, 
ExternalClass EC_A.SubLink, .ExternalClass EC_A.ChildLink, ExternalClass 
EC_A.StdLink, .ExternalClass EC_SELECT.Standard
{color:#000000;}
ExternalClass EC_ThmFgDivider
{color:#CCCCCC;}
ExternalClass EC_ThmBgStandard
{background-color:#FFFFFF;}
ExternalClass EC_ThmBgUnknown1
{background-color:#FF6600;}
ExternalClass EC_ThmBgFraming
{background-color:#666699;}
ExternalClass EC_ThmBgUnknown2
{background-color:#666666;}
ExternalClass EC_ThmBgHighlightDark
{background-color:#FFFFCC;}
ExternalClass EC_ThmBgHighlightLight, .ExternalClass #EC_idToolbar, 
ExternalClass #EC_tbContents
{background-color:#FFFFE8;}
ExternalClass EC_ThmBgTitleDarkBk
{background-color:#F1F1F1;}
ExternalClass EC_ThmBgAlternate
{background-color:#ECF1F6;}
ExternalClass EC_ThmBgUnknown3
{background-color:#CCCCFF;}
ExternalClass EC_ThmBgDivider
{background-color:#CCCCCC;}
ExternalClass EC_ThmBgHeader
{background-color:#9999CC;}
ExternalClass EC_ThmBgLinks
{background-color:#8696C9;}
ExternalClass EC_ThmBgSharkBar
{background-color:#8696C9;}
ExternalClass EC_ThmBgGlobalNick
{background-color:#9394A9;}
ExternalClass EC_calfgndcolor
{color:#E00505;}
ExternalClass EC_calbgndcolor
{color:#E00505;}
</STYLE>
 




New Message on BDOTNET



writing "©" symbol in an xml file





Reply





 
Reply to Sender   Recommend 
Message 4 in Discussion 





From: sushil_online 



Anil,
    Its working for me , if I modify your code as below. please check at your 
end
 
XmlTextWriter xtw = new XmlTextWriter("c:\\test.xml", Encoding.UTF8);
xtw.WriteStartElement("root");
xtw.WriteString("©" + DateTime.Now.Year.ToString() + "All rights reserved.");
xtw.WriteFullEndElement();
xtw.Close();
 
 
cheers
Sushil


Anil_Sahu <[EMAIL PROTECTED]> wrote:





New Message on BDOTNET



writing "©" symbol in an xml file





Reply





 
Reply to Sender   Recommend 
Message 3 in Discussion 





From: Anil_Sahu 



Hi,
 
i tried using that. Below is the sample code for doing that.
 
            XmlTextWriter xtw = new XmlTextWriter("test.xml", Encoding.UTF8);
            xtw.WriteStartElement("root");
            xtw.WriteString("&#169;" + DateTime.Now.Year.ToString() +All rights 
reserved.");
            xtw.WriteFullEndElement();
            xtw.Close();
 
however it gives the below output.
 
<root>&amp;#169; 2007 All rights reserved.</root>
 
 
but i want the output to come as follows.
 

<root> © 2007 All rights reserved.</root>
 
let me know where i am doing the mistake.
 
thanks and regards,
Anil
 
 
View other groups in this category. 






You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta. 
View other groups in this category. 









To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings. 

Need help? If you've forgotten your password, please go to Passport Member 
Services. 
For other questions or feedback, go to our Contact Us page. 

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list. 
Remove my e-mail address from BDOTNET. 
Sign in and get updated with all the action! Formula One

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to