View Single Post
Old 02-27-2010, 11:51 PM   #6 (permalink)
Tim Dobson
The Contributor
 
Tim Dobson's Avatar
 
Join Date: Feb 2010
Posts: 69
Thanks: 16
Tim Dobson is on a distinguished road
Default

ok well i found a few things on the net but got a bit stook lol i need a bit of help...

i got this and put it in to my script

PHP Code:
// Fixes the encoding to uf8
function fixEncoding($thetag)
{
  
$cur_encoding mb_detect_encoding($thetag) ;
  if(
$cur_encoding == "UTF-8" && mb_check_encoding($thetag,"UTF-8"))
    return 
$thetag;
  else
    return 
utf8_encode($thetag);
// fixEncoding 

testing all this out i found that for some people the letters in the text file come out all messy and for some it come out perfectly fine... what could be causing this?? help appriciated!
Tim Dobson is offline  
Reply With Quote