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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)