Save 10% on WordPress Customizaton - Use Promo Code 'HOLIDAY10'.
I have imported your .sql file to create the database.
I have tested your script on my localhost.
Both scripts gave me the exact the same output:
“Number of characters in body field: 3493”
So the problem must be somewhere else.