[ZeroBrane Studio] Re: UTF 8 by default

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Wed, 17 Aug 2016 10:53:11 -0700

If I create a "test.lua" page with ZBS and save it, then I open in Notepad++, 
it displays it as "ANSI". Same with Windows "notepad"
if I add some content like
local poussin="âêîôû"
save the page and open again in Notepad++ to check, it's OK :o)

Right; I think it's because there is no reliable way to get the
encoding from a file (at least without BOM), so Notepad++ is using a
heuristic that when the file has only characters with codes <=127,
it's ANSI-encoded. So when you add Unicode characters, it recognizes
the file as UTF-8 encoded.

Thank you for support, it's time for me to support back !

Thank you!

Paul.

Other related posts: