Wrox Programmer Forums
|
Classic ASP Espanol Esta es una lista de correo dedicada al intercambio de conocimiento sobre ASP 3 en el idioma español.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Espanol section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 8th, 2003, 06:04 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET QueryString y acentos

Hola tengo un problema que seguro que es muy fácil de solucionar pero yo no encuentro la solucción.

Resulta que cuando hago una llamada a una página ASP.NET que incluye un valor en el QueryString si este valor lleva acentos pierdo el caràcter acentuada.

Por ejemplo:
Tengo un programa llamado ejemplo.aspx, que contiene:

<%@ Page Language="VB" %>
<script runat="server">
sub page_load
    dim a as string=request("algo")
    l1.text=a
end sub
</script>
<html>
<head>
</head>
<body>
<form runat="server"></form>
<asp:label ID="l1" runat="server"></asp:label>
</form>
</body>
</html>


Si lo llamo como http://ejemplo.aspx?algo=olé

Me escribe ol , he perdido la é por el camino.

Les agradeceria su ayuda
 
Old October 15th, 2003, 07:53 AM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've got a similar problem due to an english plateform, as this message is well indexed by google I'll post the solution :

The solution is to add the following line to 'web.config' file :
Code:
<globalization requestEncoding="windows-1252" responseEncoding="windows-1252" culture="fr-CH"/>

 
Old January 14th, 2004, 11:40 AM
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

just to let you know:

example of the web.config:

<configuration>
   <system.web>
      <globalization
           requestEncoding="windows-1252"
           responseEncoding="windows-1252"
           culture="fr-CH"/>
   </system.web>
</configuration>

:)
 
Old September 14th, 2005, 06:09 PM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ChokoL@te
Default

Tengo el mismo inconveniente que Leugim, pero en páginas ASP.
¿Cómo puedo solucionarlo sin crear el fichero web.config?





Similar Threads
Thread Thread Starter Forum Replies Last Post
go to the querystring in VB.NET bhavna VS.NET 2002/2003 0 January 16th, 2007 01:39 AM
ASP QueryString ... dzagore2 Classic ASP Basics 5 May 7th, 2006 06:21 PM
Problem with QueryString in ASP s.abraham ASP.NET 1.0 and 1.1 Basics 1 March 22nd, 2005 04:43 PM
Querystring in ASP.NET whiterainbow .NET Framework 2.0 4 March 2nd, 2005 02:26 AM
cant make a link with Querystring in ASP zakarya_hazara Classic ASP Basics 6 October 10th, 2004 01:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.