Trim whitespace ASCII character "194" from string : <p>Recently ran into a very odd issue where my database contains strings with what appear to be normal whitespace characters but are in fact something else.</p>

<p>For instance, applying <code>trim()</code> to the string:</p>

<pre><code>"TEST "
</code></pre>

<p>is getting me:</p>

<pre><code>"TEST "
</code></pre>

<p>as a result.  So I copy and paste the last character in the string and:</p>

<pre><code>echo ord(' ');
194
</code></pre>

<p>194?  According to ASCII tables that should be <code>┬</code>.  So I'm just confused at this point.  Why does this character appear to be whitespace and how can I <code>trim()</code> characters like this when <code>trim()</code> fails?</p>
