Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which encoding should I use utf-16 or utf-8?
Message
De
26/05/2005 16:36:28
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01017684
Message ID:
01017940
Vues:
25
This message has been marked as a message which has helped to the initial question of the thread.
>We are going commence a project in .NET which will allow user submit XML document.
>Which encoding would be better to use if I were to write ASP.NET application to parse the xml through a Typed DataSet? Or does it matter?

Dawa,

You do not have to choose an encoding. When you serialize/deserialize methods, you specify a writer/reader object to handle the I/O. You can set the encoding property of this object independent of the XMLSerializer. If you use the XML reader and writer to perform the I/O, the encoding is completely transparent.

So you can make the encoding an option based on who is sending and receiving the xml documents.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform