how to show other encoding in chats? mine is in spanish, and the accents dont show correctly

Pedro Cassian's Avatar

Pedro Cassian

09 Sep, 2010 03:18 AM via web

my bot is in php, and I tried to use
header('Content-type: text/html; charset=utf-8');

however, it tells me
Warning: Cannot modify header information - headers already sent by (output started at /home/dlusionz/public_html/iteso.php:2) in /home/dlusionz/public_html/iteso.php on line 4
Hola, �c�mo te puedo ayudar?

and this is an example of the encoding issues
�Ya realizaste el examen de ubicaci�n del ingl�s? �Quieres saber sobre la oferta de niveles de ingl�s?
Revisa la informaci�n en la p�gina del Centro de Lenguas o directamente en sus oficinas, en el Edificio W, primera planta.
�Est�s por cursar el nivel 6 de ingl�s y deseas solicitar una pr�rroga? Comun�cate con Carlos Enrique S�nchez Mu�oz (ext. 3635), en Servicios Escolares, para que te informes de las opciones.

hope someone can help soon

  1. 2 Posted by jkustermann on 13 Oct, 2010 06:10 AM

    jkustermann's Avatar

    Hello,

    First, we apologize for the delayed response. You appear to be setting header information after already creating output. Since output (echo, print) causes headers to be immediately sent, you will want to set any headers before doing so. Let us know if you have further trouble with it.

    Regards,
    Jeff Kustermann

  2. 3 Posted by Pedro Cassian on 17 Oct, 2010 07:06 PM

    Pedro Cassian's Avatar

    hi

    That does seem to be the case, however I don't think its in my code, here is my initial code

  3. 4 Posted by mlucas on 21 Oct, 2010 04:44 PM

    mlucas's Avatar

    Your code did not properly paste, please upload it in a text file and attach it to this ticket.

    -Matt Lucas
    IMified Support

  4. 5 Posted by Pedro Cassian on 21 Oct, 2010 05:27 PM

    Pedro Cassian's Avatar

    here is the attached file

    thanks for the assistance

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.