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

Posted on 2009-02-14
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
Question by:mgtm3
    LVL 3

    Expert Comment

    What character set do you use in mysql? Make it utf8 if it differs
    LVL 107

    Expert Comment

    by:Ray Paseur
    If you do not need to index or search it, you might think about inserting it into a BLOB field.
    LVL 107

    Accepted Solution

    And this seems to turn up in a search of the literature:

    mysql_query("set names 'utf8'");

    HTH, ~Ray

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to dynamically set the form action using jQuery.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now