Hi, I am having issues with the auto encoding detection too. Personally I am not sure if 10kb is a good threshold for the detection. In my case I have both a html and a php file of about 35kb and they have some utf8 characters in the middle and at the end which are always broken by pspad.
The problem is that I don't notice it until its too late and the php file is causing fatal errors on the parser. Do you think it would be a noticeable performance impact to bump up the limit? Maybe not at file open but somehow async? UTF-8 is really widespread and imho. it should be considered. I have solved the issue temporarily by putting an emoji at the start of my files but this is only the case for files I already know will break, it doesn't cover the rest. I would imagine that something like 1 or 5Mb should do the job for most files and it would have no impact on smaller files anyway? Best regards -- <https://forum.pspad.com/read.php?4,71479,71800> PSPad freeware editor https://www.pspad.com
