We help IT Professionals succeed at work.

how can i insert Arabic text in the mysql ? using php

mgtm3
mgtm3 asked
on
Medium Priority
558 Views
Last Modified: 2012-06-22
how can i insert Arabic text in the mysql ? using php

each time i try to insert the data using php i get ?????????? and not Arabic text
Comment
Watch Question

Commented:
What character set do you use in mysql? Make it utf8 if it differs
Most Valuable Expert 2011
Author of the Year 2014

Commented:
If you do not need to index or search it, you might think about inserting it into a BLOB field.
Most Valuable Expert 2011
Author of the Year 2014
Commented:
And this seems to turn up in a search of the literature:

mysql_query("set names 'utf8'");

HTH, ~Ray

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.