المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Space as string in user settings file



C# Programming
10-13-2010, 02:30 AM
Hi All,

I have an interesting issue writing strings to the user settings, i.e. [project].Properties.Settings.Default.[property]. Everything goes smoothly unless I try to write a single space as a string. It appears in the file as:






On the next load, it reads as a few unprintable chars and a lot of spaces. But other strings work fine. I'm not quite sure what I have wrong since it works with other strings http://www.barakasoft.com/script/Forums/Images/smiley_biggrin.gif

Any help is appreciated, thanks!

-Chris