In one of my hobby related tasks I get to create schedules for workers working rings at a dog trial. One of the annoyances I run into is when I have cells that have something like
the quotes and the dashes end being morphed into wide characters when I save the spreadsheet as HTML. When those wide characters get sent to a browser they end up looking like garbage instead of the dashes and quotes that I started with.20" - 24" walk through
Using the od -c command I found that there was an offending set of octals that showed up repeatedly everywhere that this offense occured. What follows is a one liner that removes them quite nicely.
perl -spi -e 's/\342\200\235/"/g' dvgsdc.jsp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Saving spreadsheets to HTML that have quotes in them.
by jhourcle (Prior) on Sep 22, 2006 at 16:29 UTC | |
by blue_cowdawg (Monsignor) on Sep 22, 2006 at 16:31 UTC | |
by jhourcle (Prior) on Sep 22, 2006 at 17:36 UTC |