help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ampersand in graphics text?


From: Dmitri A. Sergatskov
Subject: Re: Ampersand in graphics text?
Date: Thu, 20 Oct 2016 10:50:38 -0500

On Thu, Oct 20, 2016 at 5:45 AM, Vic Norton <address@hidden> wrote:

  text(25, 18, "RWR & SCHH”, “fontsize”, 12, “fontweight”, “bold”);

​This string taken verbatim gives me a syntax error. The reason is that it uses
UTF-8 double quotation marks ( ​342 200 235 and 342 200 234) instead of ascii.

 cat tstr.txt
text(25, 18, "RWR & SCHH”, “fontsize”, 12, “fontweight”, “bold”);
od -c tstr.txt
0000000   t   e   x   t   (   2   5   ,       1   8   ,       "   R   W
0000020   R       &       S   C   H   H 342 200 235   ,     342 200 234
0000040   f   o   n   t   s   i   z   e 342 200 235   ,       1   2   ,
0000060     342 200 234   f   o   n   t   w   e   i   g   h   t 342 200
0000100 235   ,     342 200 234   b   o   l   d 342 200 235   )   ;  \n
0000120  \n
0000121

Replacing them with an ASCII (") or single quote (') , gives me the expected
result.

Dmitri.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]