[Mono-dev] Serialization

voilierdusud stephane at dorlac.com
Mon Mar 30 11:36:26 EDT 2009


Thanks for your help :)

Changing mono version has resolved my problem.




Andreas Nahr wrote:
> 
> 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
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 

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



More information about the Mono-devel-list mailing list