|
From: | Manuel Collado |
Subject: | Re: [bug-gawk] [OT] How to convert string like ã to utf-8? |
Date: | Tue, 17 May 2016 09:50:06 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
El 17/05/2016 6:26, Peng Yu escribió:
Hi, I have some document with something like ã. I want to convert it to utf-8 in awk. Is there a way to do? Thanks.
Arnold Robbins has told you how to do it in awk. But if your file is an HTML or XHTML one you could also try the general tool "tidy".
tidy --preserve-entities no --output-encoding utf8 input-file > output-file Hope this helps. -- Manuel Collado - http://lml.ls.fi.upm.es/~mcollado
[Prev in Thread] | Current Thread | [Next in Thread] |