php - cant get gujarati text from mysql database -


i have database with gujarati text in it.
have used utf-8 displaying using php, cant display gujarati font.
example: have string in gujarati : u00abfku00fe
real font is: પ્રકાશ so, there other decoding method display text.

you should set charset utf-8 in both insert , record database when using other characters,

$db->setcharset('utf8'); 

also specify database table's collation uft8 general ci


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -