Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

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

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
paries
Asked:
paries
1 Solution
 
sompol_kiatkamolchaiCommented:
Try this

<html>
&#174;
</html>
0
 
sompol_kiatkamolchaiCommented:
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
 
sompol_kiatkamolchaiCommented:
Hope that help.

SomPoL
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
pariesAuthor Commented:
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
 
ramazanyichCommented:
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
 
pariesAuthor Commented:
the problem was in my /etc/sysconfig/i18n
0
 
haobaba1Commented:
Hey Paries what was the problem?
0
 
pariesAuthor Commented:
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
 
ee_ai_constructCommented:
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Moderator
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now