[Django]-How to convert encoded unicode to readable unicode

4👍

I believe you’ve got your hands on some Persian!

>>> foo = u"\u202e\u062c\u0647\u0627\u0646\u202c - \u202dBBC  \u202e\u0641\u0627\u0631\u0633\u06cc\u202c - \u202e\u0646\u0634\u0633\u062a
>>> print foo        
جهان‬ - ‭BBC  ‮فارسی‬ - ‮نشست 'د       

Stackoverflow’s codeblock feature doesn’t seem to like a combination of left-/right-aligned text very well, so here’s a screenshot aswell:

Persian unicode output

It seems to be something about BBC World Persian (Iran). Atleast that’s what Google translate indicates. It is horribly hard to get the order right because of broken selection, but the language seems to fit.

👤timss

Leave a comment