[Mono-dev] Serialization

Andreas Nahr ClassDevelopment at A-SoftTech.com
Mon Mar 30 06:01:24 EDT 2009


Is it possible that the serialization is correct and it is just your display
font missing the character?
Why even use another specific (28591) encoding for serialization?
Also mono 1.9.1 is ancient. Current is 2.2 and we are near 2.4, so you
should upgrade ;)

Andreas

-----Ursprüngliche Nachricht-----
Von: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] Im Auftrag von
voilierdusud
Gesendet: Dienstag, 24. März 2009 16:26
An: mono-devel-list at lists.ximian.com
Betreff: [Mono-dev] Serialization


Hi,

I have a problem when serializing an object.

I'm using following code but some string field contains character with
accent (encoding 8859-1). It's ok on windows with .NET but not with mono on
linux (accents are replace by '?' char)

...
 using (TextWriter writer = new StreamWriter(completeFileName, true,
Encoding.GetEncoding(28591)))
                {                   
                    xmlSerializer.Serialize(writer, processedObject);

                }
...

Any idea ?

I'm using mono version 1.9.1

Thanks for your help

-- 
View this message in context:
http://www.nabble.com/Serialization-tp22682858p22682858.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list