# -*- coding: utf-8 -*- from pathlib import Path text=Path('shortcode-render.php').read_text(encoding='utf-8', errors='replace') text=text.replace('Chanson fran??aise','Chanson française') text=text.replace('?%nergique','Énergique') text=text.replace('?Y\u0007??? Cocktail / Chill','?? Cocktail / Chill') text=text.replace('?YZ? Mid-Tempo Cool','?? Mid-Tempo Cool') text=text.replace('?Y\u0007? Dansant / Festif','?? Dansant / Festif') text=text.replace('?YZ? Participation','?? Participation') text=text.replace('?Y"? ?%nergique','?? Énergique') Path('shortcode-render.php').write_text(text, encoding='utf-8') print('done')