[Top][All Lists]

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

Re: How can I get an angstrom symbol in Octave?

From: Markus Mützel
Subject: Re: How can I get an angstrom symbol in Octave?
Date: Sun, 22 Sep 2019 11:57:46 +0200

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.


reply via email to

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