Re: [gedit-list] File encoding detection



Il giorno mer, 20/07/2005 alle 09.38 +0100, Noup ha scritto:

> Ok, i see... so the reason why it usually works for me is because my 
> files are usually in utf8 or iso-8859-15 precisely.
> 
> Though, when GEdit is "trying", how does it check if the file is in utf8 
> or iso-8859-15?
> 

It checks with g_utf8_validate and if it fails it tries to convert it to
utf-8 (since contents of GtkTextView must always be in utf-8).
The relevant code is in gedit-document.c

Paolo




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