Closed GoogleCodeExporter closed 9 years ago
You need to save the file as UTF-8.
From the Help file topic Encoded Python Source Files:
UTF-8 encoded source files
You can select this encoding from the File Formats submenu of the Edit menu.
From that menu you can select whether UTF-8 encoded source files include the
BOM UTF-8 signature which is detected by the Python interpreter. This
signature is also detected by PyScripter when a file is loaded and other
Windows editors. Although it is not necessary you are advised to include an
encoding comment such as
# -*- coding: utf-8 -*-
as the first or second line of the python script. The advantage of using UTF-8
encoded files is that they can run without modification in other computers with
different default encoding. When using UTF-8 encoding you should specify all
strings that are not plain ascii as python unicode stings by adding the prefix
'u'.
Original comment by pyscripter
on 24 Mar 2015 at 6:40
Original issue reported on code.google.com by
xavier.s...@gmail.com
on 11 Nov 2013 at 8:51