Testing for presence of UTF-8 character in JQuery string failing
<p>I'm trying to create a JQuery function that will test a string for the presence of a specific UTF-8 Character.</p>

<p>In this case the character is <code>U+00AD</code> (<em>Soft Hyphen</em>). </p>

<p>Here is one variation of the function I've tried, but just can't find a working solution.</p>

<pre><code>var index = obj.value.indexOf($('&amp;#x00ad;').text());
var isMatch = index &gt;= 0;

if (isMatch) {
    //Do match work
}
</code></pre>

<p>Can anyone suggest a fix; or something else; I can use to accomplish this?</p>
