title: C++ Compilation window contains junk characters
body: <p>I am compiling c++ program using emacs.  In the compilation window, I get junk characters.   Example given below.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  
  int main()   
  {   
   error
  
  }
  </code></pre>
  
  <p>I am compiling this inside emacs by using compile command as</p>
  
  <pre><code>g++  error.cpp
  </code></pre>
  
  <p>In the compilation window, I get the following error.</p>
  
  <pre><code>g++ error.cpp 
  error.cpp: In function âint main()â:
  error.cpp:10:3: error: âerrorâ was not declared in this scope
  error.cpp:12:1: error: expected â;â before â}â token
  
  Compilation exited abnormally with code 1 at Wed Jan 23 17:09:17
  </code></pre>
  
  <p>As you can notice there are some junk characters in the window ( Many of the junks are disappeared during pasting! ).  How can avoid this? .  I don't see the issue if I do the compilation in a  terminal.</p>
  
  <p>I am using emacs 24.1.1 in ubuntu 12.10</p>