Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/09/2009, 11:20
Aioros-jms
 
Fecha de Ingreso: julio-2008
Mensajes: 116
Antigüedad: 16 años, 6 meses
Puntos: 1
Cerberus - webapi

Hola buen día!!

Bueno mi situación es que estoy haciendo un script en php utilizando el Webapi del Cerberus - Helpdesk http://wiki.cerb4.com/wiki/Web-API

tomando el ejemplo del http://wiki.cerb4.com/wiki/Parser_%28Web-API%29

Código:
<?
require_once("Cerb4WebApi.php");

$access_key = "";
$secret_key = "";

$cerb4 = new Cerb4_WebApi($access_key, $secret_key);

$url = 'http://localhost/cerb4/index.php/webapi/addresses/42.xml';
$payload = "<message>"

    ." <![CDATA[Message-ID: <4772F470.7000802@localhost>"
    ."  Date: Wed, 26 Dec 2007 16:40:16 -0800"
    ."  From: Jeff Standen <jeff@localhost>"
    ."   In-Reply-To: <47897B9E.2060304@localhost>"
    ."   User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)"
    ."   MIME-Version: 1.0"
     ."  To: Cerberus Dropbox <cerberus@localhost>"
     ."  CC: customer@localhost"
    ."   Subject: New ticket with CC"
    ."   Content-Type: text/plain; charset=ISO-8859-1; format=flowed"
    ."   Content-Transfer-Encoding: 7bit"
 
    ."   Con acentos (á) no funciona, sin acentos (é) si funciona!"
     ."]]>"
 ."</message>";
$out = $cerb4->put($url, $payload);


if(null != ($content_type = $cerb4->getContentType()))
    header("Content-Type: " . $content_type);
echo $out;



?>
Mi problema viene cuando le quiero poner acentos!! alguien conoce el dilema, muchas gracias anticipados.

saludos