simonsteele / pn

Programmer's Notepad
374 stars 115 forks source link

Detect ASCII files as UTF-8 #155

Open d-random-contributor opened 7 years ago

d-random-contributor commented 7 years ago

UTF-8 files without bom and non-ascii characters (e.g. JSON) opened in pn are currently detected as ANSI. But if non-ascii character is added, they should be saved as UTF-8. There should be an option to default to UTF-8 encoding for ASCII text instead of ANSI.

ghost commented 7 years ago

You can change the default encoding of PN under Tools->Options->General->Defaults, subsection Encoding.

d-random-contributor commented 7 years ago

It's a setting for new files created in PN, files opened from disk are still detected as ANSI.