[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Indexing Text Files and Text Encoding
From: Albert Astals Cid <aacid () kde ! org>
Date: 2015-01-21 21:20:29
Message-ID: 7272001.YoYOGTu5vR () xps
[Download RAW message or body]
El Dimecres, 21 de gener de 2015, a les 13:24:02, Vishesh Handa va escriure:
> On Wednesday, January 21, 2015 11:51:13 AM Milian Wolff wrote:
> > Or just use Qt directly:
> >
> > http://stackoverflow.com/questions/18227530/check-if-utf-8-string-is-valid
> > -i n-qt/18228382#18228382
> >
> > If it fails, either discard the file. Or try again with the system
> > encoding
> > (if that is not UTF-8) and discard otherwise.
>
> 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?
Cheers,
Albert
>
> Thanks
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
> >> <<
>> 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