The Artima Developer Community
Sponsored Link

Java Answers Forum
Problem in displaying unicode Character

2 replies on 1 page. Most recent reply: Oct 3, 2005 2:04 AM by Amol Brid

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
ackumar

Posts: 2
Nickname: ackumar
Registered: Mar, 2005

Problem in displaying unicode Character Posted: Jul 25, 2005 2:58 AM
Reply to this message Reply
Advertisement
Hai all,

I am working in RedHat Linux, jakarta-tomcat-4.1.30,
java version "1.4.2_04"

When I create a JSP page having unicode characters, the unicode characters are displayed as ?

I don't know why & where the characters are converted to ?

If any came across this kind of problem, help me.

Regards
ackumar


Subodh Rawat

Posts: 9
Nickname: zeon
Registered: May, 2005

Re: Problem in displaying unicode Character Posted: Sep 30, 2005 4:47 PM
Reply to this message Reply
Hi Kumar,

Try using the URLEncoder.encode method as well as you might have to use the URLDecoder.decode method. Look at the java.net.URLEncoder and java.net.URLDecoder clases
Java API's for more information.

-Zeon

Amol Brid

Posts: 43
Nickname: amolbrid
Registered: Feb, 2004

Re: Problem in displaying unicode Character Posted: Oct 3, 2005 2:04 AM
Reply to this message Reply
In jsp Page directive specify contentType with the charset you are using in page.
e.g.

<%@ page language="java" contentType="text/html; charset=UTF-8" %>


Regards,
Amol Brid.

Flat View: This topic has 2 replies on 1 page
Topic: days of the week.... Previous Topic   Next Topic Topic: help........me.......

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use