make khtml/misc/decoder.* public

Allan Sandfeld Jensen kde at carewolf.com
Mon Mar 5 10:46:00 GMT 2007


On Friday 02 March 2007 21:22, Anders Lund wrote:
> On Friday 02 March 2007, Andras Mantia wrote:
> > Right, its pretty hard to tell the user why Quanta (and katepart)
> > doesn't read the encoding from the file itself, if it is present.
>
> Noone prevents quanta from doing that, or any of you to contact
> kwrite-devel at kde.org or #kate @ freenode and offer your help - in fact that
> would be much appreciated.
>
> We would like to use *safe* encoding detecting, whereas we are hesitant
> with guesswork (like looking at present characters).

I agree. 

Safe encoding detection:
* Look for Unicode BOMs
* Look for <?xml encoding?> in the beginning of XML-documents
* When editing HTML documents use the whole shebang




More information about the kde-core-devel mailing list