开发者

crazy characters when saving XML? 

开发者 https://www.devze.com 2023-01-24 22:10 出处:网络
I have a input field/textbox and basicly the user presses a button to save the content of edittextbox.text to a stringparameter

I have a input field/textbox and basicly the user presses a button to save the content of edittextbox.text to a stringparameter



are the charaters thats being saved.. so my question is where do they come from and how can i parse these out before saveing XML content?

when i debugg my textbox it shows up as a regular string without and strange characters so i cant use string.replace()

Dim leftXML As New Xml.Serialization.XmlSerializer(GetType(MyLib.ComputerSetting开发者_如何学JAVAs))
Dim myxml As System.IO.TextWriter = New IO.StreamWriter(SavePath)
leftXML.Serialize(myxml, CmpSettings)
myxml.Flush()
myxml.Close()

above code for XML save. object MyLib.ComputerSettings has a regular string parameter called Init


 is an Unicode Hex Character: 'INFORMATION SEPARATOR ONE' (U+001F). (This was also in ASCII at 0x1F: US, the "Unit Separator".)

You're probably encoding some separator in your serialization process.

0

精彩评论

暂无评论...
验证码 换一张
取 消