[ZeroBrane Studio] Re: UTF 8 by default

  • From: "JCH active-documents" <jch@xxxxxxxxxxxxxxxxxxxx>
  • To: <zerobrane@xxxxxxxxxxxxx>
  • Date: Wed, 17 Aug 2016 19:59:50 +0200

Yes, unless you explictely convert to UTF 8

Thanks again !

-----Message d'origine----- From: Paul K
Sent: Wednesday, August 17, 2016 7:53 PM
To: zerobrane@xxxxxxxxxxxxx
Subject: [ZeroBrane Studio] Re: UTF 8 by default

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: