MrClay_StringDebug::highlightUtf8($str)

Hello World!\n
Iñtërnâtiônàlizætiøn\r
Col1\tCol2\tCol3\r\n
\0C\x01o\x02n\x03\x04tr\x05o\x06l\x07 \x08c\x7Fharacters

MrClay_StringDebug::export($str)

"Hello World!\nI\xC3\xB1t\xC3\xABrn\xC3\xA2ti\xC3\xB4n\xC3\xA0liz\xC3\xA6ti\xC3\xB8n\rCol1\tCol2\tCol3\r\n\x00C\x01o\x02n\x03\x04tr\x05o\x06l\x07 \x08c\x7Fharacters"

MrClay_StringDebug::export($str, false)

"Hello World!\nIñtërnâtiônàlizætiøn\rCol1\tCol2\tCol3\r\n\x00C\x01o\x02n\x03\x04tr\x05o\x06l\x07 \x08c\x7Fharacters"

MrClay_StringDebug::export($str, true, 60)

"Hello World!\nI\xC3\xB1t\xC3\xABrn\xC3\xA2ti\xC3\xB4n\xC3"
. "\xA0liz\xC3\xA6ti\xC3\xB8n\rCol1\tCol2\tCol3\r\n\x00C\x01"
. "o\x02n\x03\x04tr\x05o\x06l\x07 \x08c\x7Fharacters"