title: Getting errors stray ‘\342’ and ‘\200’ and ‘\214’
body: <p>I'm trying to write a program for a simple game, but I am getting errors, stray ‘\342’ and ‘\200’ and ‘\214’, using g++ and gedit in <a href="https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_13.10_.28Saucy_Salamander.29" rel="nofollow noreferrer">Ubuntu 13.10</a> (Saucy Salamander).</p>
  <p>The code is:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cctype&gt;
  
  using namespace std;
  
  char all_d()
  {
      return 'D';
  }
  
  int main()
  {
      bool more = true;
      while ( more )
      {
          cout &lt;&lt; &quot;enter C to cooperate, D to defect, Q to quit\n&quot;;
          char player_choice;
          cin &gt;&gt;‌ player_choice;
  
          if ( player_choice != 'C' || player_choice != 'D' || player_choice != 'Q' )
          {
              cout &lt;&lt; &quot;Illegal input.\nenter an other\n&quot;;
              cin &gt;&gt; player_choice;
          }
  
          char  cpu_choice = all_d();
  
          cout &lt;&lt; &quot;player's choice is &quot; &lt;&lt; player_choice &lt;&lt; endl;
          cout &lt;&lt; &quot;cpu's choice is &quot; &lt;&lt; cpu_choice &lt;&lt; endl;
      }
  
      if ( player_choice == 'Q' )
      {
          cout &lt;&lt; &quot;Game is Over!\n&quot;;
          more = false;
      }
  }
  </code></pre>
  <p>and terminal output is:</p>
  <pre class="lang-none prettyprint-override"><code>IPD.cpp:18:3: error: stray ‘\342’ in program
     cin &gt;&gt;‌ player_choice;
     ^
  IPD.cpp:18:3: error: stray ‘\200’ in program
  IPD.cpp:18:3: error: stray ‘\214’ in program
  IPD.cpp: In function ‘int main()’:
  IPD.cpp:29:47: error: ‘end’ was not declared in this scope
     cout &lt;&lt; &quot;cpu's choice is &quot; &lt;&lt; cpu_choice &lt;&lt; end;
                                                 ^
  IPD.cpp:32:7: error: ‘player_choice’ was not declared in this scope
    if ( player_choice == 'Q' )
         ^
  </code></pre>
  <p>I even tried to to compile this:</p>
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      char a;
      cin &gt;&gt;‌ a;
  }
  </code></pre>
  <p>and the terminal again says:</p>
  <pre class="lang-none prettyprint-override"><code>a.cpp:8:2: error: stray ‘\342’ in program
    cin &gt;&gt;‌ a;
    ^
  a.cpp:8:2: error: stray ‘\200’ in program
  a.cpp:8:2: error: stray ‘\214’ in program
  </code></pre>
  <p>How can I fix this?</p>
  <p>Note that I installed Ubuntu last night.</p>