title: How can I identify the specific character for a whitespace character?
body: <p>I have inherited the following code:</p>
  <pre><code>string.text.replace(&quot; &quot;, &quot; &quot;);
  </code></pre>
  <p>There are no comments surrounding the code.</p>
  <p>This code doesn't look like it does anything, but I suspect it actually does.</p>
  <p>I'd like to refactor the code into something more understandable like:</p>
  <pre><code>const NEWLINE = &quot; &quot; 
  string.text.replace(NEWLINE , &quot; &quot;);
  </code></pre>
  <pre><code>const NON_BREAKING_SPACE = &quot; &quot; 
  string.text.replace(NON_BREAKING_SPACE, &quot; &quot;);
  </code></pre>
  <p><strong>How can I determine that a whitespace character is a particular character?</strong></p>
  <p>I happen to be using JavaScript, but Python, shell or an online tool are also fine - the main issue is determining what the character actually is.</p>