[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Indexing Text Files and Text Encoding
From:       Dominik Haumann <dhaumann () kde ! org>
Date:       2015-01-22 19:10:58
Message-ID: 2043921.pk9qqxXk8Z () eriador
[Download RAW message or body]

On Thursday 22 January 2015 17:21:26 Vishesh Handa wrote:
> On Wed, Jan 21, 2015 at 10:20 PM, Albert Astals Cid <aacid@kde.org> \
> 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 <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic