Bad Encoding When Opening File from Explorer

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
dchernik
Posts: 4
Joined: Wed Dec 24, 2014 4:04 am

Bad Encoding When Opening File from Explorer

Post by dchernik »

I'm using TextPad 7.6.3 (64-bit) on Windows 10. Let's say I have a file x.php saved with UTF-8 encoding.

When I open it by double-clicking it in Windows Explorer, it comes up corrupted with some characters replaced with stuff like –. The Properties dialog shows encoding as "Unknown".

But when I close the file and then go into File > x.php (from recent files history), it opens normally and Properties shows UTF-8 encoding.

Same with opening it with the Open File(s) dialog: it works great.

*.PHP is under HTML in Document Classes and has UTF-8 as Default encoding.

What's going on? Why won't it open properly from Explorer? Thanks.
Post Reply