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 <<