Skip navigation links

MySQL Forums :: Full-Text Search :: Arabic text in mysql Varchar row


Advanced Search

Re: Arabic text in mysql Varchar row
Posted by: Rick James ()
Date: September 20, 2011 08:19PM

That's encouraging:
SELECT UNHEX('d981d98a20d8a7d984d8aed8b720d98120d981d98a20d8a7d984d8aed8b720d981 ');
gives
في الخط ف في الخط ف
And the D9xx and D8xx feel like Arabic encoded in utf8.

(Similarly, $description looks good.)

Now, let's walk through the exact steps to insert it. Based partially on what you said before, something like this should work:
self::$conn->query("SET NAMES utf8");
$et = self::$conn->real_escape_string($title);
$ed = self::$conn->real_escape_string($description);
self::$conn->query("INSERT INTO tbl (title, description) VALUES ($et, $ed)");

(I don't recognize the API you are using, so I may not have the details quite right.)

Options: ReplyQuote


Subject Views Written By Posted
Arabic text in mysql Varchar row 4095 Mark Webley 09/05/2011 04:23PM
Re: Arabic text in mysql Varchar row 1021 Rick James 09/07/2011 08:01PM
Re: Arabic text in mysql Varchar row 1530 Mark Webley 09/08/2011 04:45PM
Re: Arabic text in mysql Varchar row 1027 Rick James 09/09/2011 06:46PM
Re: Arabic text in mysql Varchar row 1514 Mark Webley 09/11/2011 08:03AM
Re: Arabic text in mysql Varchar row 847 Rick James 09/12/2011 11:30AM
Re: Arabic text in mysql Varchar row 1398 Mark Webley 09/12/2011 06:16PM
Re: Arabic text in mysql Varchar row 813 Mark Webley 09/12/2011 06:17PM
Re: Arabic text in mysql Varchar row 807 Rick James 09/13/2011 09:44PM
Re: Arabic text in mysql Varchar row 1138 Mark Webley 09/17/2011 05:53AM
Re: Arabic text in mysql Varchar row 859 Rick James 09/18/2011 01:45PM
Re: Arabic text in mysql Varchar row 881 Mark Webley 09/19/2011 04:10PM
Re: Arabic text in mysql Varchar row 822 Rick James 09/20/2011 08:19PM
Re: Arabic text in mysql Varchar row 1079 Mark Webley 09/25/2011 12:09PM
Re: Arabic text in mysql Varchar row 892 Rick James 09/28/2011 09:53PM
Re: Arabic text in mysql Varchar row 862 Mark Webley 09/29/2011 02:44PM
Re: Arabic text in mysql Varchar row 1345 Rick James 09/30/2011 10:14AM
Re: Arabic text in mysql Varchar row 1349 Rick James 09/10/2011 03:07PM
Re: Arabic text in mysql Varchar row 1310 Mark Webley 09/11/2011 08:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.