Scite default encoding to UTF-8

Scite is one of the best text editors out there – functional, fast and lightweight! If you write a lot of text that is not in english (read: UTF-8) it becomes pretty annoying as every time you open Scite.exe it defaults to 8-bit character set. To write or see the opened document with UTF8 characters you have to click File > Encoding > UTF-8. While there is no graphical interface for options, you can still change the default encoding manually. Here is how:

  • Open Scite, click Options > Open global options file
  • search for “#code.page=65001” (mine is at line 218) and uncomment it (remove # symbol)
  • comment out “code.page=0” (add # symbol)
  • save the global ooptions file and restart Scite.exe

Now every time you open scite or a document in it, the default encoding will be “Code page property” or UTF-8 in most cases. If it doesn`t work, there area few other lines that you can uncomment right under the mentioned ones.
Hope this helps!

Author: Valters Bože

abstract person

20 thoughts on “Scite default encoding to UTF-8”

  1. hmm, just try to play with the variables, please mind that you need to restart the program everytime you change the settings! It also didnt work for me on first time on another pc..

  2. Thanks! I love when I need to tweak something and find the answer in a blog as #1 result in Google. You never find these bits at official docs.

    I grew so tired of gedit. It is totally crazy when saving. It ate itself to 66% CPU, then kicked nautilus to 50%, then gnome panel to 50%. Like if each time you saved ten lines of text, it checked your disks, did a system backup, did the laundry, walked the dog and calculated a couple nuclear explosions. Seesh.

  3. Worked also for me on a windows workstation machine! Now greek chars are automatically displayed immediately.

    Just to add that if you’re interesting in wrapping your scite docs, instead of following the “option–>wrap” action, unomment (take off ‘#”) from the following line (no.line:142 on v.1.76 of scite):

    wrap=1

    Thnx! SciTE is great.

  4. The encoding setting still stands on Code page property. Is there a propertie which would change the encoding to UTF-8, not change the code page number instead?

  5. Now every time you open scite or a document in it, the default encoding will be “Code page property” or UTF-8 in most cases. If it doesn`t work, there area few other lines that you can uncomment

  6. I’ve tried this a few years ago, and I’ve tried it now with 3.0.2, and this has never worked for me. I still get ‘Code Page Property’ encoding for new files or for ascii text files.

Leave a Reply

Your email address will not be published. Required fields are marked *