First of all let me say ,i have a sybase database its charset is definitely not utf-8.and i cant change it to utf-8
because of some other issues.
so the problem is i need to read a data from this datbase with php and save it to a mysql table which is utf8.
so normally with out any conversion the value is saved in my database as
//sybase query
$result= someFuntionToReturnSybaseData();
//the $result is a multidimensional array
echo $result[0]['somevalue']; //19’’ long bla bla
if i try to insert this into mysql table with default charset,the value is saved as "19?? long bla bla"
in the browser it is showing as "19Â’Â’ long bla bla"
is there anyway to save "19’’ long bla bla"
in mysql table as it is and show it correctly every where
i tried
utf8_encode($result[0]['somevalue']);
iconv();
but more garbled characters are appearing
please dont tell me to use a charset everywhere the same as i cant do that