forked from Vhornets/brackets-builder
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I use Python3 as configured in #1 (comment)
My program is:
#! /usr/bin/env python3
import sys
print(sys.version)
# comment with accent: voici voilà
print("voici voilà")On the macOS Terminal console the output is:
$ python3 utf8.py
3.6.3 (default, Oct 4 2017, 06:09:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
voici voilà
In Brackets "Run Results" window I get the error:
, in
print("voici voil\xe0")
UnicodeEncoreError: 'ascii' codec can't encode character '\xe0' in position 10: ordinal not in range(128)
Note that \xe0 is the ISO-8859-1 encoding for "à". The UTF-8 encoding is \xc3\xa0.
My source code file is encoded using UTF-8.
I have no idea what/who is converting from UTF-8 to ISO-8859-1.
Metadata
Metadata
Assignees
Labels
No labels