make khtml/misc/decoder.* public

Anders Lund anders at alweb.dk
Sun Mar 4 21:47:33 GMT 2007


On Sunday 04 March 2007, Anders Lund wrote:
> > why is that??

Maybe this deserves a better answer.

Claiming that a text file is written in some specified encoding because it 
matches the characters found in the file is not safe, for example i may save 
a file as iso8859-15, but it will be detected as being ASCII, because i used 
only ASCII characters in it. So making such a guess and acting on it may be 
actively false.

You may feel that doing so is better than not, because it means that the 
characters in the file will be correctly rendered. But when you edit and save 
the file, it means that you may make a change to the file that you do not 
know of.

-- 
Anders

www: http://www.alweb.dk
jabber: anderslund at jabber.dk




More information about the kde-core-devel mailing list