I needed to generate an invalid UTF-8 character for testing with JSON. This did the trick:
<?php
echo 'Bogus UTF-8 character at end' . chr(0xC6) ;
I needed to generate an invalid UTF-8 character for testing with JSON. This did the trick:
<?php
echo 'Bogus UTF-8 character at end' . chr(0xC6) ;