encoding examples

This commit is contained in:
Mert Gör ☭ 2023-08-28 13:24:51 +03:00
parent b0f113fa67
commit 74793c5a93
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,2 @@
with open('test.txt', 'w', encoding='utf-8') as f:
f.write('ağrı dağı')

View File

@ -0,0 +1,3 @@
import locale
print(locale.getpreferredencoding(False))

View File

@ -1,4 +1 @@
a = 10
b = 20
c = a + b
print(c)
ağrı dağı