with open("text.txt", 'a', encoding='cp1254') as f:
encoding: UTF-8 'di. Kaç farklı dil seçtim yine de kodda sorun çıktı.

EK :