Test âŽ500 hmmmm
content ðððð ðĪŠðĪŠ ðĪŠ bbbttt
// Example 1: Invalid UTF-8 byte sequence
$text = “Hello x80x81 World”; // Invalid UTF-8 bytes
iconv(‘UTF-8’, ‘ISO-8859-1’, $text); // ERROR
// Example 2: Character not in target charset
$text = “Price: âŽ500”; // Euro symbol
iconv(‘UTF-8’, ‘ASCII’, $text); // ERROR – ⎠doesn’t exist in ASCII
// Example 3: Malformed HTML entities
$text = “Test � content”; // Invalid Unicode surrogate
iconv(‘UTF-8’, ‘UTF-8’, $text); // ERROR
// Example 4: Mixed encodings
$text = “Hello ” . mb_convert_encoding(‘äļį’, ‘ISO-8859-1’, ‘UTF-8’); // Corrupted
iconv(‘UTF-8’, ‘ISO-8859-1’, $text); // ERROR
// Example 5: Null bytes in wrong context
$text = “Hellox00World”;
iconv(‘UTF-8’, ‘ASCII//TRANSLIT’, $text); // May error depending on position
// Example 6: Emoji in limited charset
$text = “Great job! ð”;
iconv(‘UTF-8’, ‘ISO-8859-1’, $text); // ERROR – emoji not in ISO-8859-1

