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
163 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
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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Ransomware continues to grow in reach and sophistication, putting data everywhere at risk. Learn how to avoid being caught in its sinister clutches with these 11 key tips.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 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