PrintableASCIIQ[string]
yields True if the string contains only printable ASCII characters, and yields False otherwise.
PrintableASCIIQ
PrintableASCIIQ[string]
yields True if the string contains only printable ASCII characters, and yields False otherwise.
Details
- PrintableASCIIQ automatically threads over lists.
Examples
open all close allBasic Examples (2)
Check if a single character is a valid ASCII character:
PrintableASCIIQ["a"]PrintableASCIIQ["¤"]Check if a string contains only printable ASCII characters:
PrintableASCIIQ["abcd"]PrintableASCIIQ["¤bcd"]PrintableASCIIQ["abcͽ"]Scope (1)
PrintableASCIIQ threads over lists:
PrintableASCIIQ[{"a", "b", "c", "¤", "d", "˩"}]Properties & Relations (1)
PrintableASCIIQ[FromCharacterCode /@ Range[0, 127]]The empty string will yield True:
PrintableASCIIQ[""]Related Guides
Related Workflows
- Handle Character Encoding Issues in Imported Text
History
Text
Wolfram Research (2015), PrintableASCIIQ, Wolfram Language function, https://reference.wolfram.com/language/ref/PrintableASCIIQ.html.
CMS
Wolfram Language. 2015. "PrintableASCIIQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PrintableASCIIQ.html.
APA
Wolfram Language. (2015). PrintableASCIIQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PrintableASCIIQ.html
BibTeX
@misc{reference.wolfram_2026_printableasciiq, author="Wolfram Research", title="{PrintableASCIIQ}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/PrintableASCIIQ.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_printableasciiq, organization={Wolfram Research}, title={PrintableASCIIQ}, year={2015}, url={https://reference.wolfram.com/language/ref/PrintableASCIIQ.html}, note=[Accessed: 12-June-2026]}