Iso 8859-1 in UTF-8

  • Hi

    i telecharge one page of web with dreambox 800 ,with encodage iso 8859-1

    do you know how to change iso 8859-1 to UTF-8 without pc, then i can read it with my console, with script ,where python commanded

    can i read the page ONLY with UTF-8

    thank you

  • By "without pc" you mean in the dreambox ?

    Then you need to do it inside a .py file (for example if the text is 'event_title') :-

    event_title1 = event_title.decode('iso-8859-1')
    event_title2 = event_title1.encode("utf-8","replace")

    Hope this helps.

    Cheers, pcd.

    Edited once, last by pcd ().