Sublime Forum

Special characters and accented vocals

#1

Hi. I am using sublime and the first thing is to congrats the team, the program is amazing.

Now, the issue. I am from spain and i wanna use accent marks in vocals such as á, é, í, ó, ú, or special characters like ñ on the text the program show up or in commentaries but i cannot.

Am using ST3 for programming in python 3, running on a windows 10.

I have tried writing in the default keymap lines like this for each vocal:
{ “keys”: [“´”,“a”], “command”: “insert”, “args”: {“characters”: “á”}},
{ “keys”: [“´”,“A”], “command”: “insert”, “args”: {“characters”: “Á”}},

but is not working.

I also tried “save with encoding” or adding #encoding: utf-8 in the first line but also nothing.

The issue is, even the simplest program like

print(“camión”)

will result in nothing, not even an error message.

Thanks for help.

0 Likes

#2

Weird. I’m from Spain too and didn’t notice this issue. In any case, to be clear: yo CAN enter accented characters in Sublime itself but python won’t output rhem to the console? Are you using the Python that comes with Sublime Text 3 itself or an exterbal installation?

0 Likes

#3

Hi.

I´ll do my best trying to explain it in english, and sorry if i don´t know the basics, i am amateur.

The thing is, i can enter accented characters while writing the script but, when i try to run the code it does nothing.

The funny thing is, when i write accented characters in the REPL (this thing with >>>) there is no problem, it´s only when i try to do it by console.

I add 2 screenshots, sorry they are in spanish.

And about sublime and python, not sure. I have installed python 3.6 and then sublime text.

Thanks for help.

0 Likes