[ZeroBrane Studio] ??????[ZeroBrane Studio] Switching encoding from UTF-8 to GBK

  • From: "????????" <894597841@xxxxxx>
  • To: "zerobrane" <zerobrane@xxxxxxxxxxxxx>
  • Date: Sat, 5 Dec 2015 00:47:30 +0800

Because some simplified Chinese will be garbled, so I need to convert encoding.
Thank you for your answer. ??????.------------------ ???????? ------------------
??????: "Paul K"<paul@xxxxxxxxxxxxx>
????????: 2015??12??5??(??????) ????0:28
??????: "zerobrane@xxxxxxxxxxxxx"<zerobrane@xxxxxxxxxxxxx>;
????: [ZeroBrane Studio] Switching encoding from UTF-8 to GBK


How to swich utf-8 to gbk?

You can set the codepage in the editor, but I'm not sure it's going to
work since the editor component doesn't do any encoding conversion and
wxwidgets keeps the text as UTF-8 internally. Why do you need to
switch?

Putting something like this in the config file will switch the code
page (936 is code for Simplified Chinese GBK):

package {
onEditorLoad = function(self, editor) editor:SetCodePage(936) end,
onEditorNew = function(self, editor) editor:SetCodePage(936) end,
}

Paul.

Other related posts:

  • » [ZeroBrane Studio] ??????[ZeroBrane Studio] Switching encoding from UTF-8 to GBK - ????????