I'm pretty desperate on this one.
Thing is I'm from Germany and we got vowel mutations (ä,ü,ö. etc). I got a location database and want to make some queries to it. Hence it all worked fine and when I was trying to find "München" (you might know it as Munich) it broke. In general I'm using the TableGateways provided by ZF2, but they are not the problem (check the list below).
Basically it always screws up on vowel mutations. What I tried and checked:
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES UTF8"
(no effect)
doublechecking the database collation ( utf8 general_ci)
checked my file_encoding (utf8)
playing arround with iconv
and utf8_de/encode
(no effect)
Logging the queries which flew by
140428 11:59:49 394 Query SET PROFILING=1
394 Query SHOW STATUS
394 Query SHOW STATUS
394 Query SELECT `location`.* FROM `location` WHERE `city` LIKE 'münc%'
394 Query SHOW STATUS
Trying the query on navicat and by terminal (worked)
and writing a quick and dirty
mysql_connect(); mysql_query()
- Test which also failed.
Edited the mysql config to use utf over latin1 as default charset.
And now I don't have the slightest clue what else I can do to fix it.