I have written data crawling engine which does (so far) everything right except it completely stops data inserting process at the point where euro € symbol ocurres in the text. I belive this symbol may not be the only one.
If string that is about to be inserted into database table looked like this:
Quick brown € fox jumped over the laizy dog.
this would end up in database:
Quick brown
My trouble is that I've followed several instructions found on this site about precisely this issue, with no luck.
What I have already done to fix this(php-side):
made sure that:
mysqli_set_charset($dblink, "utf8");
mysqli_real_escape_string($dblink, $string);
tried with:
iconv('windows-1250','utf8//TRANSLIT', $string );
iconv('windows-1250','utf8', $string );/*crawled web page declared windows-1250 characterset*/
(here I had success finishing data insertion with € symbol preserved, however other latin characters čćšđž was completely degraded)
- several others attempts with
mb_convert_encoding()
- attempts to change server response with of
Accept
andAccept-Charset
headers
mysql side:
Table and fields was set to utf8_unicode_ci
tried to fix DEFAULT CHARACTER SET
to utf8 (did that to existing, non-empty database)
No success. Whatever I attempt to, insertion process stops with € symbol.
Does anyone know what should I do?