I want html number entities like &#x119; and want to convert it to real character. I have emails mostly from linkedin that look like this:chcia&#x142;abym zapyta&#x107;, czy rozwa&#x17c;a Pan takze  udzia&#x142; w nowych projektach w Warszawie ? Obecnie poszukujemy  specjalisty javascript/architekta z bardzo dobr&#x105;  znajomo&#x15b;ci&#x105; Angular.js do projektu, kt&#xf3;ry dotyczy  systemu, s&#x142;u&#x17c;&#x105;cego do monitorowania i  zarz&#x105;dzania flot&#x105; pojazd&#xf3;w. Zesp&#xf3;&#x142;, do  kt&#xf3;rego poszukujemyI'm using clawsmail, switching to html don't convert it to text, I've try to copy and usexclip -o -sel clip | html2text | lessbut it didn't convert the entities. Is there a way to have that text using command line tools?The only way I can think of is to use data:text/html,<PASTE THE EMAIL> and open it in a browser, but would prefer the command line.
How to convert html entities to readable text?
text processing;character encoding;html
With GNU recode:recode html < fileIf you don't have recode or HTML::Entities and only need to decode &#x<hex>; entities, you could do it by hand with:perl -Mopen=locale -pe 's/&#x([\da-f]+);/chr hex $1/gie'