Jump to content

how to use HTMLParser or BeautifulSoup to convert special characters?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
wqjwftcaqr

wqjwftcaqr

    Newbie

  • Members
  • Pip
  • 8 posts
how to use HTMLParser or BeautifulSoup to convert special characters like 䁥 and ‧ ?
I tried "handle_charref" funtion from "HTMLParser" Class, but this funtion only return me number 16485?, I don't know how to get special characters that just like page showed

#2
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 890 posts
  • Location:::1
Convert them how? From UTF to ASCII? Getting UTF values? Check out this part of documentation (Beautiful Soup), it's about encodings.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users