0

I am trying to print:

printf("rlstats (1.0.0), © 2020 name \nEnter a list of comma - separated real number pairs terminated by EOF or non numeric input.\n");

but the © isnt printing, how would I do about this? is there a code for it?

alinsoar
  • 15,386
  • 4
  • 57
  • 74

2 Answers2

0

Instead of using © directly, you should use the corresponding unicode \u00A9

Ryan
  • 113
  • 6
  • printf("rlstats (1.0.0), \u00A9 2020 name\nEnter a list of comma - separated real number pairs terminated by EOF or non numeric input.\n"); did not work –  Feb 28 '20 at 19:46
  • Depending on the charset of your source code and of the console terminal, `\xA9` may work instead instead of `\u00A9`. – Remy Lebeau Feb 29 '20 at 01:37
0

You can try wprintf:

wprintf(L"rlstats (1.0.0), © 2020 name\n");
wprintf(L"Enter a list of comma-separated real number pairs terminated by EOF or non-numeric input.\n");
S.S. Anne
  • 15,171
  • 8
  • 38
  • 76
  • I actually get `(C)` instead of `©` with this. – dbush Feb 28 '20 at 20:09
  • @dbush Weird. I get that too. [Asked a question](https://stackoverflow.com/questions/60458832/why-is-the-copyright-symbol-replaced-with-c-when-using-wprintf) about it. – S.S. Anne Feb 28 '20 at 20:55