resolvi o problema do acento colocando:resolvi mandando um header com content type html e charset iso8859-1.
header("Content-type: text/html; charset=iso-8859-1");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");