public static boolean isAsciiPrintable(char ch) {
        return ch >= 32 && ch < 127;
    }
<p>Checks whether the character is ASCII 7 bit printable.</p>

<pre>
  CharUtils.isAsciiPrintable('a')  = true
  CharUtils.isAsciiPrintable('A')  = true
  CharUtils.isAsciiPrintable('3')  = true
  CharUtils.isAsciiPrintable('-')  = true
  CharUtils.isAsciiPrintable('\n') = false
  CharUtils.isAsciiPrintable('&copy;') = false
</pre>

@param ch  the character to check
@return true if between 32 and 126 inclusive
android/android_framework/base/src/main/java/lang3/CharUtils.java