How to convert things like ã to utf-8?
Peng Yu <[email protected]> Tue, 17 May 2016 08:11:34 -0500
| Newsgroups | gmane.comp.web.html-tidy.user |
|---|---|
| Message-ID | <CABrM6w=dnDGktmaOL_si4hPcsYp7cK+w58xN5Z=nM_jV6aX6Ug@mail.gmail.com> |
Hi, For the following xml, I want to convert things like ã to utf-8. http://ieeexplore.ieee.org/gateway/ipsSearch.jsp?sortfield=py&hc=1000&sortorder=desc&an=6706948 But I still see things like ã with the following command. Does anybody know what is the correct command to do the conversion? Thanks. ~$ curl "http://ieeexplore.ieee.org/gateway/ipsSearch.jsp?sortfield=py&hc=1000&sortorder=desc&an=6706948" > tmp1.xml ~$ tidy -q -xml --preserve-entities no --output-encoding utf8 tmp1.xml > tmp2.xml ~$ vim tmp1.xml ~$ grep Bilz tmp2.xml <![CDATA[Bilzã Araú jo; Liang Zhao]]> -- Regards, Peng