Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

* REQUIRED: Non-printable characters were found in the 'functions.php' file. You may want to check this file for errors.

What are non-printable characters and how can I correct it?

share|improve this question
    
Is Theme Check not indicating the line(s) in functions.php on which it is finding the non-printable characters? –  Chip Bennett May 30 '11 at 13:02

1 Answer 1

They are characters that are non printable and should be removed. This is usually the first 32 ASCII characters + 127 ( it might also be extended characters above 127), for example character 7 is an "audible bell", so ya that's not going to work :)

Display (or web friendly) characters start at character 33, so look in your functions.php for some weird ASCII and delete them. Turn on debugging so you get a better error with the actual line call.

If you can't delete them you can use a preg_replace php function, something like http://stackoverflow.com/questions/1176904/php-how-to-remove-all-non-printable-characters-in-a-string.

For reference on first 127 ASCII: http://www.telacommunications.com/nutshell/ascii.htm

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.