jps wrote:wuub wrote:What are the semantics of .set_encoding()?
It just sets the encoding that will be used when saving next. If you want to reopen the current file with a different encoding, you can use the reopen command - see Default/Main.sublime-menu for an example.
So it's possible to call reopen from API ? Afaik it's not exposed to public.