Skip to content
Advertisement

Can’t convert this text in normal format in python?

I am web-scraping some stuff and i got something like this “735 𝚆𝚒𝚕𝚕𝚒𝚊𝚖 𝚃 𝙼𝚘𝚛𝚛𝚒𝚜𝚜𝚎𝚢 𝙱𝚕𝚟𝚍, 𝙳𝚘𝚛𝚌𝚑𝚎𝚜𝚝𝚎𝚛, 𝙼𝙰 02122 Dorchester MA 02121” how do i convert it to normal text in python?

Advertisement

Answer

You can run it through Unicode normalization:

JavaScript

Here’s a REPL screenshot that demonstrates it works:

NFKD

Advertisement