PHP MYSQL Insert Data in Arabic Language

Posted by h_a86 on Stack Overflow See other posts from Stack Overflow or by h_a86
Published on 2012-06-29T13:46:28Z Indexed on 2012/06/30 3:16 UTC
Read the original article Hit count: 135

Filed under:
|
|
|

I am trying to insert some Arabic Language data into MySQL using PHP and an HTML form. When I insert the data in to MYSQL table, the table field represents data as مرحبا العالم.

But when I access the same data with PHP and show it in my webpage, it shows the correct data. I am using:

http-equiv="Content-Type" content="text/html; charset=utf-8" 

meta tag in my web page to show Arabic data. My question is why my data looks like this: مرحبا العالم in MySQL table, and how should I correct it.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql