utf 8 - mysql charset latin1 into utf-8 conversion issue -


my client's web app has large database millions of records. table's encoding latin1.

when fetch text field holds huge data , mail string strange haracter issue comes. such when recieve email spaces converted character Â. not premissible change db encoding. tried following php function no outcome ;(

$msg = mb_convert_encoding($msg, "utf-8", "latin1"); 

please help

i check encoding php thinks is

echo mb_detect_encoding($str); 

and do

iconv("detectedencoding", "utf-8", $str); 

or if iconv not installed, check if encoding right in solution. ;)


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -