Strings from database are not shown correctly

are your content type is utf-8 like header(‘Content-Type: text/html; charset=utf-8’);
otherwise you can check example from this link. https://ideone.com/MC0hou