On Aug 6, 3:16 pm, "Gernot Frisch" <M...@Privacy.net> wrote:
question is simply, can I write:
const char units = "=B5A";
Or will the compilation depend on my computer locale ?
Many codepages have =B5 (mue) at index 230 defined. However, you may not
relay on this.
He mentionned xterm, so I rather doubt he's talking about
Windows, and their non-standard terminology. In Unicode, it's
03BC, which would be 0xCE, 0xBC in UTF-8. (There's also an ISO
8859 encoding for Greek, but I don't know what it is exactly.)
Modern Linux does attempt to allow UTF-8 everywhere, so it's
just possible that if he's under Linux, and the sysadmins have
configured everything just right (and he's set his environment
up just right)`, that using this two character sequence would
Under Windows, of course, he could just use L"\u03BC", which if
his IO uses the correct locale (I'm not sure how Windows
compilers map this sort of stuff), should work.
If you need the character consider using unicode or (as
we do for half a decade now) write "mue" instead of the character.
The solution I've always seen has been to use the small letter
u. Looks sort of like a mu, and is present in the basic
James Kanze (GABI Software) email:james.kanze:gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34