1

[SOLVED] Compare unicode characters in Python program

view story
linux-howto

http://www.linuxquestions.org – I am learning phrases in the French language at the moment and have written a wee Python program that creates a web-page containing these phrases and their English equivalent. I then copy this web-page to my Kindle which I use as flash-cards to memorise them. I have the program working but I am stuck with part of it where I have to convert certain characters to their HTML Unicode equivalent to allow them to be displayed on the web-page. My work-around I have used is to check for unicode characters in each phrase string by converting each character to ASCII using the ord() function. If the fir (HowTos)