Acentos no Ajax (Portugues)... Accents in Ajax..

M

michaelb

Descobri uma coisa legal e to mandando para vocês...
Como colocar acentos em aplicação com Ajax!

Na pagina que recebe os dados: (Na primeira linha)..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br"
lang="pt-br">

Na pagina que envia os dados, precisa colocar...

EM ASP:
Response.AddHeader "Content-Type", "text/html; charset=iso-8859-1"

EM PHP:
header("Content-Type: text/html; charset=iso-8859-1");

É isso ai...
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,787
Messages
2,569,630
Members
45,335
Latest member
Tommiesal

Latest Threads

Top