Re: Writing a buffer with UTF-8 content.
- From: Yaa101 <yaa101 xs4all nl>
- To: Yaa101 <yaa101 xs4all nl>
- Cc: "gnome-shell-list gnome org" <gnome-shell-list gnome org>
- Subject: Re: Writing a buffer with UTF-8 content.
- Date: Fri, 27 Jul 2012 04:39:26 +0200
> The keyfile.to_data() tells that the number of bytes is 17838 after
> adding "blahblah"
correction:
The keyfile.to_data() tells that the number of bytes is 17838 after
adding "Name[nl_NL.UTF-8]=blahblah" and i have seen some extra 0x0a
So 17838 would be the correct buffersize.
--
(o_
//\ Regards, Groeten,
V_/_ Bas Burger.
On Fri, 27 Jul 2012 04:28:54 +0200
Yaa101 <yaa101 xs4all nl> wrote:
> After some more experimenting, I maybe have a hunch.
> Could it be that something goes wrong between keyfile handing over
> it's buffer and putting that in a javascript string?
> The input file is 17809
> The keyfile.to_data() tells that the number of bytes is 17838 after
> adding "blahblah"
> The javascript string, after receiving the data, reports 13961 with
> string.length
>
> I tried to feed the keyfile.to_data() directly into the
> GLib.file_set_contents, but I think it still uses a javascript string.
>
> To be continued...
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]