Page 1 of 1

MySQL: Special characters in strings

Posted: Thu Jan 19, 2006 3:54 pm
by visionmaster
Hello,

Searching for the string industrieofen using

Code: Select all

SELECT *
FROM `platzierungen_werbebanner`
WHERE `platzierungswort` LIKE  'industrieofen'
finds records holding either industrieofen or industrieöfen.

=> How can that be? How can I force MySQL to recognize the german charachter ö?


The tables structure is the following:

CREATE TABLE `commercial` (
`werbebanner_platzierungsid` int(10) unsigned NOT NULL auto_increment,
`platzierungswort` varchar(120) character set latin1 collate latin1_german1_ci NOT NULL default '',
`platzierungsfolge` tinyint(2) NOT NULL default '0',
PRIMARY KEY (`werbebanner_platzierungsid`),
KEY `platzierungsfolgeIndex` (`platzierungsfolge`),
KEY `platzierungswortIndex` (`platzierungswort`(50)),
KEY `statistikBannerIndex` (`id_firmendaten`,`platzierungsfolge`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1


Thanks for your help.

Posted: Thu Jan 19, 2006 4:18 pm
by raghavan20
Look here