I have a table like this on a site :
CODE
CREATE TABLE `table_name` (
`id` int(8) NOT NULL auto_increment,
`title` varchar(200) character set latin1 default NULL,
`description` text character set latin1,
`owner` varchar(50) character set latin1 default NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `title` (`title`),
FULLTEXT KEY `description` (`description`),
FULLTEXT KEY `owner` (`owner`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=25259;
`id` int(8) NOT NULL auto_increment,
`title` varchar(200) character set latin1 default NULL,
`description` text character set latin1,
`owner` varchar(50) character set latin1 default NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `title` (`title`),
FULLTEXT KEY `description` (`description`),
FULLTEXT KEY `owner` (`owner`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=25259;
It has about 13,000 rows.
and 90 % of the content have been inserted as persian (arabic) characters.
like a word "فارسی"
but when i look at mysql through mysql query browser or phpmyadmin is show the words like " فص„† " (it is not that word)
and when i fetch it again and echo it on the page it shows "فارسی" again. (so i assume it is just storeed in database like that, but changes to good shape when using it on the site)
Now I want to add a fulltext search to the site. I use this query :
CODE
SELECT * FROM table_name WHERE MATCH(title,description,owner) AGAINST('$_POST[key]' in boolean mode)
this query works perfect for english words. But show no results for persian (arabic) words.
How can i fix such thing ?
Thanks in advance