On Tue, Sep 19, 2017 at 11:02 AM, Kent West <we...@acu.edu> wrote:

>
> > cat test.shtml
> Why isn't this working?<br />
> <!–#echo var=”DATE_LOCAL” –>
> <br />Arg!
>
> Result of web-browsing to test.shtml:
>
> Why isn't this working?
>>
>> Arg!
>>
>

I had somehow gotten some hidden characters in the text. This little
command revealed the issue:

> python -c "f = open('test.shtml', 'r'); f.seek(0); file = f.readlines();
print file"
["Why isn't this working?<br />\n", '<!--#echo
var=\xe2\x80\x9dDATE_LOCAL\xe2\x80\x9d -->\n', '<br />Arg!<br />\n', '\n']

which led me to discover that my double-quotes were "smart quotes". (I
must've copy/pasted the code from a web site that used smart-quotes.
D'oh!").

Thanks anyway! Sorry for the noise!


-- 
Kent West                    <")))><
Westing Peacefully - http://kentwest.blogspot.com

Reply via email to