Re: question about encoding



Hi,

Charles Iliya Krempeaux <tnt linux ca> writes:

> I don't think that GIOChannel has anything to do with the encoding
> of a string in a file.
> 
> To GIOChannel, you are dealing with a file.  It really doesn't
> care what's in it.  It's just a bunch of bytes to it.

this is only true if you set the GIOChannel's encoding to NULL. Per
default, GIOChannel does indeed care about the bytes it is reading and
it assumes UTF-8 encoding. This assures that you always get full
characters when you read characters from the GIOChannel.


Salut, Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]