Thanks for reply!
Hmm... I thought all vala strings are handled as utf-8. So I casted the
buffer just like this:
print("%s\n",(string)buffer); 
What would you do ?
Regards
Jörn

Am Dienstag, den 09.02.2010, 19:37 +0100 schrieb Xavier Bestel:
> Well, from what you write it looks more like you're writing with the
> wrong encoding. 
> 
> ----- Message d'origine ----- 
> > Hello Xav 
> > That looks like exactly my problem, the only thing is that not the
> whole 
> > string is broken, but only the multibyte chars (crème brûlée ->
> cr?me 
> > br?l?e). 
> > Am I loosing the multibyte chars in the cast to string of my
> reading 
> > buffer (which is: char* buffer = new char[MAX];) or in the gio 
> > inputstream reading? 
> > I expected to reconstruct the whole file content, if I read it byte
> by 
> > byte.?. 
> > Regards 
> > Jörn 
> > 
> > 
> > Am Dienstag, den 09.02.2010, 19:08 +0100 schrieb Xavier Bestel: 
> > > Xav 
> > 
> > 
> > 
> 
> 
> 


_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to