I have a curious problem where I am given many strings in a list. For instance, the list may be:
[
"Cartier 'Déclaration d'un Soir'",
"Hue Cool",
"Lagos Caviar™ Hoop"
]
As you can see the strings contain both normal characters as well as ascii codes. I want to convert it all to characters for a readable string.
I could go through and search for all &#
character sets and convert from there using ;
as the delimiter. I would think this would be rather inefficient though, and I need this to be as quick as possible. I also need to keep the code very clean. Does anyone know of a better way to go about making this work? Any suggestions are appreciated!