Re: [Vala] Is it possible to do a reading buffer offset in vala?
- From: JM <interflug1 gmx net>
- To: Xavier Bestel <xavier bestel free fr>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Is it possible to do a reading buffer offset in vala?
- Date: Tue, 09 Feb 2010 19:43:32 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]