Tema: Utf8
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 31/08/2010, 07:39
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Utf8

A mi me funciona bien:
Cita:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Por qué pensás que no te funciona? De cualquier manera se necesita en ciertos casos codificar el texto que estés tratando en php, y es bueno tener una función como esta:

Código PHP:
/* FIX ENCODING */
// Fixes the encoding to uf8 
if(!function_exists("fixEncoding")){
    function 
fixEncoding($in_str){ 
       
$cur_encoding mb_detect_encoding($in_str) ; 
      if(
$cur_encoding == "UTF-8" && mb_check_encoding($in_str,"UTF-8")) 
        return 
$in_str
      else 
        return 
utf8_encode($in_str);
    };
};