|
From: | Brett Green |
Subject: | Re: How can I get an angstrom symbol in Octave? |
Date: | Sun, 22 Sep 2019 12:36:15 -0400 |
On Sat, 21 Sep 2019 22:06:59 Brett Green wrote:
> Using single quotes (without $) was all I needed to change to get the
> degree symbol to appear. Thank you!
>
> Now I'm wondering why using single vs. double quotes makes a difference...
> what's important, though, is that it works.
>
Single quoted strings take the string passed "as is". Double quoted strings
process backslash sequences. E.g. "\n" is a line feed, but '\n' is the two
characters '\' and 'n'.
> ...Actually, I may have written that prematurely. Although I can get the
> degree symbol, I still can't get the angstrom symbol. \AA and \r{A} were
> suggested but neither worked. Any ideas why not?
>
Octave 5.1 sometimes has issues "remembering" the character encoding. It
should be working if you specify the character encoding for .m files
explicitly. E.g.:
__mfile_encoding__ ("iso-8859-1");
clear functions
This has already been fixed for the next major release Octave 6.
Markus
[Prev in Thread] | Current Thread | [Next in Thread] |