![]() |
| | #1 |
| Registered User Join Date: Mar 2009
Posts: 48
| XML Encode Help. i am develop a small tool with C# for converting the ASCII format xml file to UTF-8 format. What's the different for the below two line? Which one is better to use. <?xml version="1.0" encoding="us-ascii"?> <?xml version="1.0" encoding="ascii"?> Code: XmlDeclaration xmldecl;
......
xmldecl = doc.CreateXmlDeclaration("1.0", "us-ascii", null);
BR! Pingz
__________________ -------------------------------------------------------- Newbie C/C#/C++ swimming/cycling/running There is nothing more powerful than an idea. Except for an idea put into action. -------------------------------------------------------- Last edited by userpingz; 10-29-2009 at 02:50 AM. Reason: add code |
| userpingz is offline | |
| | #2 |
| (?<!re)tired Join Date: May 2006 Location: Portugal
Posts: 5,220
| Neither of them, don't you think? If you want to use UTF-8 encoding you use: Code: <?xml version="1.0" encoding="UTF-8"?>
__________________ Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster. |
| Mario F. is offline | |
| | #3 | |
| Registered User Join Date: Mar 2009
Posts: 48
| Quote:
Thank you Mario. :-)
__________________ -------------------------------------------------------- Newbie C/C#/C++ swimming/cycling/running There is nothing more powerful than an idea. Except for an idea put into action. -------------------------------------------------------- | |
| userpingz is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parsing Xml | deviousdexter | C# Programming | 7 | 04-24-2009 06:29 AM |
| Dissecting an Excel XML spreadsheet | desmond5 | C++ Programming | 1 | 05-22-2008 04:32 PM |
| XML encoding issue | George2 | C# Programming | 1 | 05-16-2008 05:21 AM |
| XML and data exchange | seexml | C Programming | 0 | 04-27-2006 03:02 PM |
| Need help with this xml tree example | kzar | C Programming | 1 | 11-22-2004 11:23 AM |