php - Unable to fetch characters as in Mysql database -


unable fetch characters in mysql database below table.

    table1       +-------------------------------+    |   aph |   id0                 | +-------------------------------+    |     |   costa rican colón   | |   b   |   icelandic króna     | |   c   |   somali shilling     | |   d   |   nicaraguan córdoba  | +-------------------------------+    

when db using pdo in php above character shown

costa rican col�n

what should do?

after fetching mysql need use htmlentities below in php

$str = htmlentities('costa rican colón'); echo $str;exit; 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -