Reputation: 11
Even though i add a comment to change the encoding to utf-8 i get an error. I can not print ü ğ ş ç İ Ş Ç Ğ Ö Ü
# -*- coding: utf-8 -*-
print("ğ")
The error i get
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf0 in position 0: unexpected end of data
I am using virtual studio 2022 and Python 3.10 (i think the latest ?)
Upvotes: 0
Views: 1109
Reputation: 11
The issue was not related to python or any code.
My command prompt window was not adjusted to utf-8. I changed it in the language settings. Thanks for your reply nonetheless sidereal !
Upvotes: 1