APK errors

In JSON the letter ə becomes \u0259

This is not corruption. By default json.dumps writes the letter ə as \u0259. That is the code of the same letter. When a program reads the file, it gets ə again.

If you want to see the letter in the file, write ensure_ascii=False and save the file as utf-8. Do not write cp1254. That table has no ə.

Do not change everything at once.

\u0259 is not a broken ə. It is another way to write the same letter.

import json

metn = json.dumps({"olke": "Azərbaycan"}, ensure_ascii=False)
with open("metn.json", "w", encoding="utf-8") as fayl:
    fayl.write(metn)