to pass Nosan value in link use server objects urlencode method
for e.g..
you can try following solution
ASP code
<a ref="jsppage.jsp?param=<%=server.urlecode("string value")%> >click here
</a>
to decode its value in Java you can use
static method decode of URLDecoder class which accept string and returns
string.
this class is available in J2SE net package.
----- Original Message -----
From: Anthony Mak <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 11:42 AM
Subject: Passing non-ascii code in the href?
> I have an asp page that use :
> <A href="jsppage.jsp?param=non-ascii-value">Click here</A>
>
> And in the jsppage.jsp, get the parameter like this:
> <%= request.getParameter("param"); %>
>
> In the real case, I have a Japanese character string in non-ascii-value,
but
> the value displayed on the screen becomes unreadable.
>
> How can I pass non-ascii string in the href?
>
> Anthony Mak
> ---------------
> $B%"%s%=%s%K!<!!%^%C%/ (B
> $B%j%s%/>pJs%7%9%F%`3t<02q<R (B
> $B%"%I%P%s%9;v6HIt!! (BE9 $B%A!<%` (B
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
- Passing non-ascii code in the href? Anthony Mak
- Re: Passing non-ascii code in the href? Y Chan
- Prabhu bharat
