Determine if char is in a certain range?
<p>I want to check if <code>ch</code>, which defin as a char <code>(char ch = ' ')</code>, is between 0x20 (space) to 0x7E (~).</p>

<p>I try many ways, but it gives me wrong answer. </p>

<p>For example:</p>

<pre><code>if (ch &gt; 0x20 or ch &lt;0x7F) then

if (ch &gt; ' ' or ch &lt; '~') then
</code></pre>

<p>How can I do it?</p>

<p>Thanks</p>
