[Python] How to change string with right-to-left unicode character so the character order...

Discussão em 'Python' iniciado por Stack, Outubro 6, 2024.

  1. Stack

    Stack Membro Participativo

    I have this string: "birthday_balloons.\u202egpj"

    If I execute print("birthday_balloons.\u202egpj") it outputs

    birthday_balloons.jpg


    Note how the last three characters are reversed. I want to process the string "birthday_balloons.\u202egpj" in such a way that I get the string "birthday_balloons.jpg", with the order of the characters just like they were displayed.

    How can I do that?

    Continue reading...

Compartilhe esta Página