in reply to Malformed UTF-8 character

$data2 is already decoded as utf-8, no need to decode it. Use
$decode2 = from_json($data2);
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Malformed UTF-8 character (unexpected continuation byte 0x96, with no preceding start byte)
  • Select or Download Code