From kde-devel Thu Jan 22 19:10:58 2015 From: Dominik Haumann Date: Thu, 22 Jan 2015 19:10:58 +0000 To: kde-devel Subject: Re: Indexing Text Files and Text Encoding Message-Id: <2043921.pk9qqxXk8Z () eriador> X-MARC-Message: https://marc.info/?l=kde-devel&m=142195389611966 On Thursday 22 January 2015 17:21:26 Vishesh Handa wrote: > On Wed, Jan 21, 2015 at 10:20 PM, Albert Astals Cid wrote: > > > > > > > That's exactly what I've currently implemented. I was a little concerned > > > about discarding the file. Oh well. > > > > Maybe you can also use KEncodingProber as third step? > > > Good idea. I'll implement it. Maybe have a look at how Kate does the encoding detection: http://api.kde.org/frameworks-api/frameworks5-apidocs/ktexteditor/html/katetextloader_8h_source.html We use KEncodingProber, if no BOM is found and no codec is specified. Greetings, Dominik >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<