Limited Offer: Annual web hosting for under $48 + FREE $75 Envato Market Credit. Get It Now.
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.