-1

What is the error error: unmappable character for encoding ASCII. The code is:

outputWord = newWord + "ag’ ,r";
Eli Sadoff
  • 7,173
  • 6
  • 33
  • 61
ARC
  • 1
  • 1
  • 2

1 Answers1

1

Your ’ character is not supported by ASCII. If you need just an apostrophe, use ' instead. If you need that character, you can use the Unicode escape code for it, for example \u00a9 is the copyright symbol. You'll have to find the correct Unicode code for that special character.

Alex Beardsley
  • 20,988
  • 15
  • 52
  • 67