Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2009 01:35:19 -0700
From:      Gary Kline <kline@thought.org>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   for perl wizards.
Message-ID:  <20091009083516.GA60096@thought.org>

next in thread | raw e-mail | index | archive | help

	Whenever I save a wordpeocessoe file [OOo, say] into a
	text file, I get a slew of hex codes to indicate the char to be
	used.  I'm looking for a perl one-liner or script to translate
	hex back into ', ", -- [that's a dash), and so forth.  Why does
	this fail to trans the hex code to an apostrophe?

	perl -pi.bak -e 's/\xe2\x80\x99/'/g'  

	If there any another other tools, I'm interested!

	tia, guys,

	gary



-- 
 Gary Kline  kline@thought.org  http://www.thought.org  Public Service Unix
        http://jottings.thought.org   http://transfinite.thought.org
    The 5.67a release of Jottings: http://jottings.thought.org/index.php




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091009083516.GA60096>