I’m having a problem because whenever I type “č” it comes out as “è” and when I type “ć” it comes out as “æ”. I’m using the 3.13.1 version on Windows 11. I don’t know how to make my Python support those characters. Can someone help me?
Hello,
here is the Latin Extended-A
Unicode character set.
print('\u010D')
č
print('\u0107')
ć
Maybe there was a typo in your execution?
What my problem is whenever, for an example, I try to “print” the croatian alphabet in Python, (it looks like this: a b c č ć d dž đ e f g h i j k l lj m n nj o p r s š t u v z ž) it replaces č and ć with è and æ. I tried to change that through the “Configure IDLE” options but I couldn’t fix it.
This does not happen on any of the school computers.
what happens when you type into notepad or Word? Can you open a terminal without launching python, and run echo "abcčć"
?
This looks like it isn’t a python problem.
If you copy-paste print("č ć")
into your Python terminal, does that work?
What operating system are you using?
What editor are you using? (IDLE, Mu, Visual Studio Code, etc)
This is almost certainly not an issue with Python, or even your editor, but rather some setting you may have activated with Windows or macOS.