[Python] Combining Devanagari characters

Discussão em 'Python' iniciado por Stack, Dezembro 1, 2024.

  1. Stack

    Stack Membro Participativo

    I have something like

    a = "बिक्रम मेरो नाम हो"


    I want to achieve something like

    a[0] = बि
    a[1] = क्र
    a[3] = म


    but as म takes 4 bytes while बि takes 8 bytes I am not able to get to that straight. So what could be done to achieve that? In Python.

    Continue reading...

Compartilhe esta Página