UTF-16 XML
0 отговора
69 прегледа
UTF-16 XML
privet,
ako moje nqkoi da podskaje kak se zapisva Unicode (UTF-16) string v XML.
myXmlTextWriter = New XmlTextWriter("example.xml", System.Text.Encoding.Unicode)
.........
myXmlTextWriter.WriteStartElement("message")
myXmlTextWriter.WriteElementString("unicode", UnicodeString)
..........
gorniq primer hva6ta Exception:
System.ArgumentException: The surrogate pair is invalid.
samo da spomena 4e trqbva da izpolzvam UTF-16.
merci predvaritelno!
ako moje nqkoi da podskaje kak se zapisva Unicode (UTF-16) string v XML.
myXmlTextWriter = New XmlTextWriter("example.xml", System.Text.Encoding.Unicode)
.........
myXmlTextWriter.WriteStartElement("message")
myXmlTextWriter.WriteElementString("unicode", UnicodeString)
..........
gorniq primer hva6ta Exception:
System.ArgumentException: The surrogate pair is invalid.
samo da spomena 4e trqbva da izpolzvam UTF-16.
merci predvaritelno!