Just nu i M3-nätverket
Jump to content

Vilket Format


WhiskyBravo

Recommended Posts

Svenska+Elf%C3%B6retaget

 

Den+nationella+r%C3%B6relsen

 

 

 

Så här ser posterna ut i databasen men hittar inte velket textformat dom är i.

 

Skall konvertera det til UTF-8

Link to comment
Share on other sites

Tack.

 

Löste det skälv. med denna kod.

 

function conv_str($s){

$s=str_replace('+',' ',$s) ;

while (strpos($s,'%')){

$d=substr($s,strpos($s,'%')+1,2);

$s=str_replace('%'.$d,chr(hexdec($d)),$s);

}

return iconv('UTF-8','ISO-8859-1',$s);

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...