Re: string change in jsp
- From: raj <2rajesh.b@xxxxxxxxx>
- Date: Thu, 16 Oct 2008 20:23:08 -0700 (PDT)
On Oct 16, 7:31 pm, Mitul Makadia <mitul.maka...@xxxxxxxxx> wrote:
On Oct 16, 12:16 pm, raj <2rajes...@xxxxxxxxx> wrote:
On Oct 16, 2:47 pm, neeraj <neeraj....@xxxxxxxxx> wrote:
On Oct 16, 10:57 am, raj <2rajes...@xxxxxxxxx> wrote:
hi,
i have a String S="hell(“two”)";
two is not surrounded with double quotes its with “two”.
i have set this string in request
request.setAttribute("Description",S);
from my jsp i called i tried to print S
<% out.print(request.getAttribute("Description")); %>
it should print me hell(“two”)
but its printing
hell(?two?)
two is surrounded with ?
pls sort my problem out
Raj
try this "hell(//“two//”)"- Hide quoted text -
- Show quoted text -
it prints
hell(//“two//”)
Hi,
You can try with String s = "hell(\"two\")"; It worked for me.
Which platform do you use for development? If you intend to use Non-
ASCII i.e “ in Java program or JSP please use its unicode rather than
character itself, the reason is that you Java or JSP file is saved
using ASCII or ISO-8859-1
depending on your OS platform encoding which may not include special
character in its range.
Thanks,
Mitul Makadia- Hide quoted text -
- Show quoted text -
Hi
i have used
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
language="java"%>
it worked out
but when i am passing this string in querystring its not taking the
correct one its replacing with â in place of the quotes
.
- References:
- string change in jsp
- From: raj
- Re: string change in jsp
- From: neeraj
- Re: string change in jsp
- From: raj
- Re: string change in jsp
- From: Mitul Makadia
- string change in jsp
- Prev by Date: Re: i still dont understand
- Next by Date: Re: SwingWorker.execute() does nothing
- Previous by thread: Re: string change in jsp
- Next by thread: Re: string change in jsp
- Index(es):
Relevant Pages
|