Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Felipe Vieira Resende

Firefox Ajax enviando dados em UTF-8

Recommended Posts

Estou com o seguinte problema, a página está enviando os dados em UTF8, ou seja não consigo enviar palavras com Acentos e Ç para o SQL Server que utiliza latin1, pois todo o site e programa utiliza latin1

Consegui decodificar utf8 no IE/Chrome utilizando o código decodeURI, porém o mesmo não funcionou no firefox, continua enviando os dados em utf8 como posso arrumar isto?

 

Como posso enviar dados para o Firefox iso-8859-1?

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>

<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Language' content='pt'/>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
<title>www.STonline.com.br</title>
<link href='../../css/estilo.css' rel='stylesheet' type='text/css' />

<link rel='shortcut icon' href='../../imgs/imgs_br/navegador_site.ico'/>
<link rel='icon' type='image/gif' href='../../imgs/imgs_br/animated_favicon1.gif'/>
<script src='../../js/jquery-1.9.1.js' charset='iso-8859-1'></script>
<script type='text/javascript' src='../../js/MascarasValidacao.js'></script>
<script type='text/javascript' src='../../js/script.js' charset='iso-8859-1'></script>

<script type='text/javascript' charset='iso-8859-1'>

		$.ajaxSetup({

  beforeSend: function(xhr) {
    if(xhr.overrideMimeType) 
      xhr.overrideMimeType('text/html;charset=iso-8859-1');
	  xhr.setRequestHeader('Accept-Charset', 'ISO-8859-1');
  }
});


$(document).ready(function(){
	 $('a').unbind('click');
	  $('a').click(function(e){
		 e.preventDefault();
		 
		 if($(this).attr('target') == '_blank'){
		 	window.open($(this).attr('href'));
		 }
		 else{
		 	$('#rightcolumn').load($(this).attr('href'));
		 }
		 
	  });
	});
</script>





</head>
<body>
<div id='master' style='width:100%'>
	<div id='header'>
		<div id='menu_top'>
			<table width='100%' border='0' cellpadding='0' cellspacing='0'>
				<tr>
					<td width='17%'><div align='left'><img src='../../imgs/imgs_br/TOP_-ponta_talheres.jpg' width='178' height='38'/></div></td>
					<td width='55%'><table width='100%' border='0' cellspacing='0' cellpadding='0'>
							<tr>
								<td width='22%'><div align='center'><a href='Get?id_sec=9'><img src='../../imgs/imgs_br/BT_TOP_empresa.jpg' alt='Empresa' width='58' height='38' border='0'/></a></div></td>
								<td width='1%'><div align='center'><img src='../../imgs/imgs_br/BT_TOP_div.jpg' width='4' height='38'/></div></td>
								<td width='16%'><div align='center'><a href='Get?id_sec=4'><img src='../../imgs/imgs_br/BT_TOP_Clientes.jpg' alt='Clientes' width='55' height='38' border='0'/></a></div></td>
								<td width='1%'><div align='center'><img src='../../imgs/imgs_br/BT_TOP_div.jpg' width='4' height='38'/></div></td>
								<td width='18%'><div align='center'><a href='Get?id_sec=6'><img src='../../imgs/imgs_br/BT_TOP_servicos.jpg' alt='Consultoria' width='100' height='38' border='0'/></a></div></td>
								<td width='4%'><div align='center'><img src='../../imgs/imgs_br/BT_TOP_div.jpg' width='4' height='38'/></div></td>
								<td width='10%'><div align='center'><a href='Get?id_sec=7'><img src='../../imgs/imgs_br/BT_TOP_noticias.jpg' alt='Noticias' width='56' height='38' border='0'/></a></div></td>
								<td width='6%'><div align='center'><img src='../../imgs/imgs_br/BT_TOP_div.jpg' width='4' height='38'/></div></td>
								<td width='6%'><div align='center'><a href='Get?id_sec=59'><img src='../../imgs/imgs_br/BT_TOP_rh.jpg' alt='Recursos Humanos' width='19' height='38' border='0'/></a></div></td>
								<td width='6%'><div align='center'><img src='../../imgs/imgs_br/BT_TOP_div.jpg' width='4' height='38'/></div></td>
								<td width='10%'><div align='center'><a href='Get?id_sec=26'><img src='../../imgs/imgs_br/BT_TOP_contato.jpg' alt='Entre em contato' width='55' height='38' border='0'/></a></div></td>
							</tr>
						</table></td>
					<td width='28%'><ccom:if-field-compare id='User' type='root' op='equal' comparevalue='anonymous'>
						<form action='Login' method='post'>
							<table width='200' border='0' align='right' cellpadding='0' cellspacing='0'>
								<tr>
									<td width='38'><img src='../../imgs/imgs_br/TX_login.jpg' width='38' height='38'/></td>
									<td width='90'><input name='User' type='text' size='12' onkeypress='return somenteNumerico(event);'/></td>
									<td width='20'><img src='../../imgs/imgs_br/ico_cadeado_login.jpg' width='20' height='38'/></td>
									<td width='90'><input  type='password' name='Pass' size='12'/></td>
									<td width='27'><div align='center'>
											<input name='Login' type='image' src='../../imgs/imgs_br/BT_ok_login.jpg' width='27' height='34'/>
										</div></td>
								</tr>
							</table>
						</form>
						</ccom:if-field-compare> </td>
				</tr>
			</table>
		</div>
		<div id='faixa_laranja'>
			<table width='100%' border='0' cellpadding='0' cellspacing='0'>
				<tr>
					<td width='17%'><div align='left'><a href='Get?id_sec=70'><img src='../../imgs/imgs_br/TOP_miolo_talheres.jpg' width='178' height='115' border='0'/></a></div></td>
					<td width='51%'><div align='left'>
							<table width='100%' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='220'><div align='left'><img src='../../imgs/imgs_br/LOGO_ST.jpg' width='220' height='115'/></div></td>
									<td width='342' align='center'><ccom:if-field-compare id='User' type='root' op='not_equal' comparevalue='anonymous'>
										<p align='center' class='titulo_categoria'>Bem Vindo 
											<ccom:xsl xslcommand='value-of' select="/CCoMContent/Section[@Code=10005]/ContentList/Content[@Code=1]/vField[@Id='NomeCliente']"/>
											
										</p>
										<p align='center' class='SubMenu'><a href='Get?id_sec=74' style='color:#FFFFFF'>Alterar
												Senha</a>   
											<ccom:xsl xslcommand='if' test="/CCoMContent/Section[@Code=10005]/ContentList/Content[@Code=1]/vField[@Id='EhRepresentante']='True'">
											<a href='Get?id_sec=73' style='color:#FFFFFF'>Tabela
											de Preço</a>   
											</ccom:xsl>
											<a href='Logout' style='color:#FFFFFF'>Sair</a></p>
										</ccom:if-field-compare></td>
								</tr>
							</table>
						</div></td>
					<td width='32%'><div align='center'>
							<table width='100%' border='0' cellspacing='0' cellpadding='0'>
                            
								<form id='foo' action='Get?id_sec=75' method='get' jqvMethod="get">
                                
                                
									<tr>
										<td width='77'><div align='left'><img src='../../imgs/imgs_br/TX_pesquisar.jpg' alt='Pesquisar' width='76' height='20'/></div></td>
										<td width='249'><div align='left'>
												<input type='text' name='Nome' class='texto_noticia' size='15'/>
												<input type='hidden' name='Ord' value='3' />
                                                <input type='hidden' name='id_sec' value='75' />
												 
												<select name='Fabricante' style='height:18; width:140;' class='texto_noticia'>
													<option value='0' selected='selected' >Todas Categorias</option>
                                                    
													<ccom:content-block section='10004'>
													<option value='2'><ccom:attrib-add name='value'><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>HP</ccom:field></option>
													</ccom:content-block>

												</select>
												<input class='texto_noticia' type='image' height='18' src='../../imgs/imgs_br/BT_pesquisar.jpg' align='absbottom' />
											</div></td>
									</tr>
								</form>
                                
							</table>
						</div>
						<div align='center'>
							<table width='215' border='0' cellspacing='0' cellpadding='3'>
								<tr>
									<td width='215'><div align='right'><a href='Get?id_sec=64'><img src='../../imgs/imgs_br/BT_meu_orcamento.jpg' alt='Meu Orcamento' width='151' height='64' border='0'/></a></div></td>
								</tr>
							</table>
						</div></td>
				</tr>
			</table>
		</div>
	</div>
	<div id='container'>

		<table width='100%' border='0' cellspacing='0' cellpadding='0'>
			<tr>
				<td width='20%' valign='top'><a href='Get?id_sec=70'><img src='../../imgs/imgs_br/TOP_base_talheres.jpg' width='194' height='122' border='0' /></a><br />
					<a href='Get?id_sec=70'> <img src='../../imgs/imgs_br/BT_home.jpg' width='194' height='62' border='0' /></a><br />
					<div id='menu_categorias' align='left'>
						<ccom:xsl xslcommand='if' test="/CCoMContent/Section[@Code=10005]/ContentList/Content[@Code=1]/vField[@Id='EhRepresentante']='True'">
                        
						<div class="div_menu" title="Clique para abrir ou fechar" onmouseover="abreMenu('representante');" onmouseout="fechaMenu('representante');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img9' src='../../imgs/imgs_br/ico_BT_higienizacao.jpg' width='24' height='62' /></td>
									<td width='123'><a href='#' class='texto_menu'>Representante</a></td>
								</tr>
								<tr style='display: none;' id='representante'>
									<td width='100%' valign='top' colspan='2' align='left'><span class='SubMenu'><img src='../../imgs/imgs_br/menu_higienizacao.jpg' /><a href='get?id_sec=79'>Argumentações
												de Vendas</a></span><br />
										<span class='SubMenu'><img src='../../imgs/imgs_br/menu_higienizacao.jpg' /><a href='get?id_sec=80'>Lançamentos</a></span><br />
										<span class='SubMenu'><img src='../../imgs/imgs_br/menu_higienizacao.jpg' /><a href='get?id_sec=81'>Eventos</a></span><br />
										<span class='SubMenu'><img src='../../imgs/imgs_br/menu_higienizacao.jpg' /><a href='get?id_sec=82'>Acontecimentos</a></span><br />
										<span class='SubMenu'><img src='../../imgs/imgs_br/menu_higienizacao.jpg' /><a href='get?id_sec=83'>Arquivos Úteis</a></span><br />
										<span class='SubMenu'><img src='../../imgs/imgs_br/menu_higienizacao.jpg' /><a href='#' onClick="javascript:window.open('http://www.stonline.com.br/jeti/jeti.html', 'Jeti', 'width=200, height=400,left=50, top=50')" style='cursor:pointer;'>Jeti Messenger </a></span><br />									</td>
								</tr>
							</table>
						</div>
						</ccom:xsl>
                        
						<div class='div_menu' title='Clique para abrir ou fechar' onmouseover="abreMenu('talheres');" onmouseout="fechaMenu('talheres');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img1' src='../../imgs/imgs_br/ico_BT_talheres.jpg' width='24' height='62'/></td>
									<td width='123'><a href='#' class='texto_menu'>1.Talheres</a></td>
								</tr>
								<tr style='display: none;' id='talheres'>
									<td width='100%' valign='top' colspan='2' align='left'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='2'>
                                        <img src='../../imgs/imgs_br/menu_talheres.jpg'/>
                                        <span class='SubMenu'>
                                        <a href='#'>
                                        <ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add>
                                       <ccom:field id='Title'>UnicWMF</ccom:field>
                                       </a>
                                       </span>
                                       <br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu' title='Clique para abrir ou fechar' onmouseover="abreMenu('tacas');" onmouseout="fechaMenu('tacas');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img2' src='../../imgs/imgs_br/ico_BT_tacas.jpg' width='24' height='62'/></td>
									<td width='123'><a href='#' class='texto_menu'>2.
											Taças e Copos</a></td>
								</tr>
								<tr style='display: none;' id='tacas'>
									<td width='100%' valign='top' colspan='2' align='left'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='17'><img src='../../imgs/imgs_br/menu_tacas.jpg'/><span class='SubMenu'><a href='#'><ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>Unic
										WMF</ccom:field></a></span><br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu' title='Clique para abrir ou fechar' onmouseover="abreMenu('porcelana');" onmouseout="fechaMenu('porcelana');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img3' src='../../imgs/imgs_br/ico_BT_porcelanas.jpg' width='24' height='62' /></td>
									<td width='123'><a href='#' class='texto_menu'>3.
											Porcelanas</a></td>
								</tr>
								<tr style='display: none;' id='porcelana'>
									<td width='100%' valign='top' colspan='2' align='left'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='26'><img src='../../imgs/imgs_br/menu_porcelanas.jpg'/><span class='SubMenu'><a href='#'><ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>Unic
										WMF</ccom:field></a></span><br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu' title='Clique para abrir ou fechar' onmouseover="abreMenu('buffet');" onmouseout="fechaMenu('buffet');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img4' src='../../imgs/imgs_br/ico_BT_buffet.jpg' width='24' height='62' /></td>
									<td width='123'><a href='#' class='texto_menu'>4.
											Buffet, Baixelas & Cia</a></td>
								</tr>
								<tr style='display: none;' id='buffet'>
									<td width='100%' valign='top' colspan='2' align='left'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='34'><img src='../../imgs/imgs_br/menu_buffet.jpg' /><span class='SubMenu'><a href='#'><ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>Unic
										WMF</ccom:field></a></span><br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu' title='Clique para abrir ou fechar' onmouseover="abreMenu('bar');" onmouseout="fechaMenu('bar');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img5' src='../../imgs/imgs_br/ico_BT_bar.jpg' width='24' height='62' /></td>
									<td width='123'><a href='#' class='texto_menu'>5.
											Bar </a></td>
								</tr>
								<tr style='display: none;' id='bar'>
									<td width='100%' valign='top' colspan='2' align='left'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='50'><img src='../../imgs/imgs_br/menu_bar.jpg'/><span class='SubMenu'><a href='#'><ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>Unic
										WMF</ccom:field></a></span><br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu' title='Clique para abrir ou fechar' onmouseover="abreMenu('cozinha');" onmouseout="fechaMenu('cozinha');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img6' src='../../imgs/imgs_br/ico_BT_cozinha.jpg' width='24' height='62' /></td>
									<td width='123'><a href='#' class='texto_menu'>6.
											Cozinha</a></td>
								</tr>
								<tr style='display: none;' id='cozinha'>
									<td width='100%' valign='top' colspan='2' align='left'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='54'><img src='../../imgs/imgs_br/menu_cozinha.jpg' /><span class='SubMenu'><a href='#'><ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>Unic
										WMF</ccom:field></a></span><br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu' title='Clique para abrir ou fechar' onmouseover="abreMenu('higienizacao');" onmouseout="fechaMenu('higienizacao');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img id='img7' src='../../imgs/imgs_br/ico_BT_higienizacao.jpg' width='24' height='62' /></td>
									<td width='123'><a href='#' class='texto_menu'>7.
											Higienização Estocagem & Distribuição</a></td>
								</tr>
								<tr style='display: none;' id='higienizacao'>
									<td width='100%' valign='top' colspan='2' align='left'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='66'><img src='../../imgs/imgs_br/menu_higienizacao.jpg' /><span class='SubMenu'><a href='#'><ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>Unic
										WMF</ccom:field></a></span><br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu2' title='Clique para abrir ou fechar' onmouseover="abreMenu('encomenda');" onmouseout="fechaMenu('encomenda');">
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='38' valign='top'><img id='img8' src='../../imgs/imgs_br/ico_BT_encomenda.jpg' alt='Promoções' width='38' height='62' /></td>
									<td width='109'><a href='#' class='texto_menu2'>Sob
											Encomenda</a></td>
								</tr>
								<tr style='display: none;' id='encomenda'>
									<td width='100%' valign='top' colspan='2' class='SubMenu'><ccom:content-block section='10001'>
										<ccom:if-field-compare id='CodPaiGrupo' type='virtual' op='equal' comparevalue='71'><img src='../../imgs/imgs_br/menu_encomenda.jpg' /><a href='#'><ccom:attrib-add name='href' value='Get?id_sec=62&Grupo='><ccom:field id='Code' /></ccom:attrib-add><ccom:field id='Title'>Unic
										WMF</ccom:field></a><br />
										</ccom:if-field-compare>
										</ccom:content-block></td>
								</tr>
							</table>
						</div>
						<div class='div_menu2' >
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='38' valign='top'><img src='../../imgs/imgs_br/ico_BT_promocoes.jpg' alt='Promoções' width='38' height='62' /></td>
									<td width='109' class='texto_menu2'><br />
									  <a href='Get?id_sec=85&Grupo=0&Promocao=T'>Promoções</a></td>
								</tr>
							</table>
						</div>
						<div class='div_menu2' >
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img src='../../imgs/imgs_br/ico_BT_ponta_estoque.jpg' alt='Ponta de Estoque' width='38' height='62' /></td>
									<td width='123' class='texto_menu2'><br />
									  <a href='Get?id_sec=86&Grupo=0&Ponta=T'>Ponta
										de Estoque</a></td>
								</tr>
							</table>
						</div>
						<div class='div_menu2' >
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img src='../../imgs/imgs_br/ico_BT_noticias.jpg' alt='Notícias' width='38' height='62' /></td>
									<td width='123' class='texto_menu2'><br />
									  <a href='Get?id_sec=7' class='texto_menu2'>Notícias</a></td>
								</tr>
							</table>
						</div>
						<div class='div_menu2' >
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img src='../../imgs/imgs_br/ico_BT_dicas.jpg' alt='Dicas' width='38' height='62' /></td>
									<td width='123' class='texto_menu2'><br />
									  <a href='Get?id_sec=8' class='texto_menu2'>Dicas</a></td>
								</tr>
							</table>
						</div>
						<ccom:discard>
						<div class='div_menu2' >
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img src='../../imgs/imgs_br/ico_BT_lista_casamento.jpg' alt='Lista de Casamento' width='38' height='62' /></td>
									<td width='123' class='texto_menu2'><br />
										Lista de Casamento</td>
								</tr>
							</table>
						</div>
						</ccom:discard>
						<div class='div_menu2' >
							<table width='147' border='0' cellspacing='0' cellpadding='0'>
								<tr>
									<td width='24' valign='top'><img src='../../imgs/imgs_br/ico_BT_contato.jpg' alt='Contato' width='38' height='62' /></td>
									<td width='123' class='texto_menu2'><br />
									  <a href='Get?id_sec=26' class='texto_menu2'>Contato</a></td>
								</tr>
							</table>
						</div>
						<ccom:discard>
						<p><br />
							<img src='../../imgs/imgs_br/banner_atendimento.jpg' alt='Chat' border='0' /></p>
						</ccom:discard>
					</div>
				<div id='final_menu_E'><img src='../../imgs/imgs_br/img_final_menu.jpg' width='194' height='65' /></div></td>
                
				<td width='80%' align='center' valign='top'>
                
               	  <div id='rightcolumn'><!-- BRANCO -->
                  
                  </div>
                
                </td>
			</tr>
			<tr>
			<td bgcolor='#000000' colspan='2' height='71' align='center'><img src='../../imgs/imgs_br/rodape.jpg' height='71' width='1000' align='middle' /></td></tr>
		</table>
        
  </div>
</div>

<script type='text/javascript' charset='iso-8859-1'>


	$('#rightcolumn').load('Get?id_sec=70');
	
	

	$(document).ready(function(e) {
    
	
    $('#foo').submit(function(e) {
        

        e.preventDefault();
        
		
        var form_data = $(this).serialize();
        var form_url = $(this).attr('action');
        var form_method = $(this).attr('method').toUpperCase();
	 
				 
        $('#loadingimg').show();

        $.ajax({
	
			contentType: "charset=iso-8859-1", 
			 url: form_url,    
            type: form_method,      
            cache: false,
			data: decodeURI(jQuery(this).serialize()), 
			success: function(returnhtml){   
		          
				     $(document).ready(function(){
             alert( 'Rodou o jQuery!' )
			 
			 });                 
								   
								   
                $('#rightcolumn').html(returnhtml); 
				
                $('#loadingimg').hide();      
				

				        
            }       
			    
        });    
        
    });
    
	});
	
	
	
</script>
</body>
</html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

O ideal é vc tratar com server-side. Ajax vai enviar em utf8 mesmo por padrão.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Olha...

Eu utilizo o MS SQL Server latin1 e utilizo o charset utf-8 pra tudo e não tenho qualquer problema.

Acentos e ç são armazenados e exibidos sem nenhum problema.

 

Aliás, o UTF-8 é o padrão para web. Utilize ele em tudo, e não terás dor de cabeça.

 

Vejo no seu código um excesso de charset pra todos os lados.

Declare o charset UTF-8 dentro do head na tag meta e isso já basta.

 

A seguir uma ferramenta online que converte xhtml para html5:

http://mynthon.net/tools/xhtml-to-html5/

 

E um link falando do uso correto de charset em xhtml:

http://www.w3.org/International/O-charset.pt-br.php

 

Enfim, espero que os links acima ajude em algo.

 

Em projetos futuros, utilize o HTML5 e UFC-8 que não terá qualquer dor de cabeça.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.