Forum Moderators: open

Message Too Old, No Replies

Problem relating to TRADEMARK symbol on html

unable to get trademark symbol om html page

         

Anshul Bhatnagar

6:54 am on Oct 19, 2004 (gmt 0)

10+ Year Member



I need to read data from xml file and display it on html page.But, when I use charset like utf-8 or iso-8859-1,I an not able to get trademark symbol(TM) or Registerd Trademark symbol on html page.If I use charset windows-1252,I can see special symbols(trademark,registered trademark),but this not work on Linux operating symbol.

Whick charset I should use so that I can see TRADEMARK and REGISTERED TRADEMARK symbol on html page on Linix & windows operating system.

Cook

7:07 am on Oct 19, 2004 (gmt 0)

10+ Year Member



Are you using the html entity ™ in your html code?

Cheers,
Cook

Anshul Bhatnagar

7:23 am on Oct 19, 2004 (gmt 0)

10+ Year Member



Hi,
I am reading the data from the xml and displaying on html page.That xml file contains special symbols.So I cannot use ™ to display trademark symbol on html page

tedster

8:11 am on Oct 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For the iso-8859-1 character set, the trademark symbol is ®
In unicode, it's ™

So I guess it depends on which character set you establish for the page. I'm not very conversant with xml, xslt and such, so I hope this helps.

Anshul Bhatnagar

9:27 am on Oct 19, 2004 (gmt 0)

10+ Year Member



I have to get data from the xml dynamically and I don't know where the trademark symbol appear in the xml.Also I cannot change the data of xml.So at any given point of time, I cannot know where the trademark symbol is coming so I cannot put any hexadecimal number in place of trademark symbol.
I can only set the charset which show that trademark symbol on html, when I display the content of xml on html page.
When I set windows-1252 charset on my html page, it shows the trademark symbol but this approach fails on Linux operating system.I need hte subsitute charset which can run on linux platforn and shows special symbols.
It is not in my hand to give hexadecimal numbers for special symbols because data is coming from xml.

Span

10:32 am on Oct 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can't you use TM and R and style them sup and small instead of using symbols?

Anshul Bhatnagar

10:52 am on Oct 19, 2004 (gmt 0)

10+ Year Member



I cann't do like that because I don't have control over the content.Can u suggest me windows-1252 equivelent in linux.Or the charset that can be used both in linux & windows and shows the special symbol.windows-1252 shows special symbols in windows OS but not in linux

Lance

11:05 am on Oct 19, 2004 (gmt 0)

10+ Year Member



The answer isn't changing your charset. You alreay have to parse the xml to display it as html now, right? So while you're parsing it, you need to replace the offending characters with proper html entities. It is not necessary for you to change the xml, or to even know where in the xml they occur.

Like everyone else hads been saying, that is your answer.

Anshul Bhatnagar

1:39 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



while parsing,I have to search the content for special charaters after reading the content from the xml.But I don't know how to search special characters in the content and to what I search in the content to find special characters(either with hexcode of special charaters or anything else).Please throw some light on that.

Cook

2:55 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



For a start, find out what charset your xml is in. Then you find out what is the trademark code in that charset. Then while parsing you check for this code. When found you replace it with what's appropriate for your html charset, or simply ™
Cheers,
Cook