Solved

when ever i display a  ® symbol in my JSP or someother special chacters in my JSP i get a ?

Posted on 2004-08-26
10
164 Views
Last Modified: 2010-04-01
hello
when ever i display a  ® symbol in my JSP or someother special chacters in my JSP i get a ?

What is strange is on a different box it works fine.

Same version of tomcat and jdk

This one is driving me crazy.

please help, this is got to be a simple one.
0
Comment
Question by:paries
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 11905170
Try this

<html>
&#174;
</html>
0
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 11905198
You can represent ® with &#174; in html.

This is HTML Entity Element.

If you want another sign, please check it from this url

http://www.htmlcodetutorial.com/characterentities_famsupp_69.html
0
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 11905203
Hope that help.

SomPoL
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:paries
ID: 11905408
That does not really solve my problem

the jsp is reading a text file
on one machine all the special character display fine
on the other they are all question marks.

0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11906538
The probelm is that on client PC character encoding which doesn't include  registered trademark can be enabled. Try to set encoding on clinet by using JSP directive at the beginning of your JS page:
<%@ page contentType="text/html; charset=iso-8859-1" %>
0
 

Author Comment

by:paries
ID: 11906571
the problem was in my /etc/sysconfig/i18n
0
 
LVL 3

Expert Comment

by:haobaba1
ID: 11916900
Hey Paries what was the problem?
0
 

Author Comment

by:paries
ID: 11917511
my site is a combo of perl and j2ee

When i upgraded to rh9 the perl got these wierd messages

so i changed the file /etc/sysconfig/i18n on one machine but not the other

i can not remember what it was originally but now the line in the file reads
LANG="en_US"

Hope that help
randy
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 11947437
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with LDAp login using jsp 6 120
tomcat startup error 5 167
ejb on wildfly 5 62
jsp CRUD operations with and without prepared statement also hibernatge 1 49
Check out this step-by-step guide for asking an anonymous question on Experts Exchange.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question