[plug] Mass substitute mixed utf files

Robert Parker rlp1938 at gmail.com
Thu Feb 24 02:23:56 WST 2011


On Wed, Feb 23, 2011 at 8:14 PM, Carl Gherardi <carl.gherardi at gmail.com> wrote:
> Hey all,
>
> I've discovered over that my two favourite tools dont deal with utf16
> particularly well
>
> grep something utf16file fails as does cat utf16file | sed
> 's/something/replace/g'

Maybe change utf16 to utf8, do the operation and then convert back.
This link may help: http://unicode.org/faq/utf_bom.html#utf16-3

Bob Parker
-- 
Ayn Rand was a dole bludger!



More information about the plug mailing list