code: function _updateEncodingInfo(editor) {
          var doc = editor.document;
  
          // Show the current encoding as button title
          if (!doc.file._encoding) {
              doc.file._encoding = "UTF-8";
          }
          encodingSelect.$button.text(doc.file._encoding);
      }
docs: Update encoding
  @param {Editor} editor Current editor