html special characters to latin-1 conversion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ulrice jardin

    html special characters to latin-1 conversion

    hi

    I had a look to this htmlentitydefs lib, but I still
    don't know how to convert html special characters into
    latin-1 characters.
    For instance, how can I convert ' into ' or é
    and é into é?
    Is there any function to do that?

    thx for any help
    Jul


    _______________ _______________ _______________ _____
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    Yahoo Mail: Your smarter, faster, free email solution. Organize your inbox, protect your privacy, and tackle tasks efficiently with AI-powered features and robust security tools.

  • Kent Johnson

    #2
    Re: html special characters to latin-1 conversion

    ulrice jardin wrote:[color=blue]
    > hi
    >
    > I had a look to this htmlentitydefs lib, but I still
    > don't know how to convert html special characters into
    > latin-1 characters.
    > For instance, how can I convert ' into ' or é
    > and é into é?[/color]

    Searching comp.lang.pytho n for 'htmlentitydefs ' gives quite a few solutions.

    Here is one way:


    Kent

    Comment

    Working...