views:

85

answers:

3

I have a url that redirects to a page on my main site. For some reason, when I access through the rewritten URL, a TM symbol is showing up as â¢, but when I access through the main site, it shows up correctly.

The urls are http://waterlessmilkwarmer.com/ and http://www.medelabreastfeedingus.com/milk-warmer so you can see what's happening. They are both looking at exactly the same page (the first url redirects to the second). Look at the page title ("Introducing the first and only...") to see what's happening.

The site is running on .NET and that page title is being stored and pulled directly from the database. There are HTMLEncode calls on it, but when I removed them and just displayed it directly from the database, it still did the same thing.

I'm guessing the redirected url has something to do with this, but I don't know what. Has anyone seen this before and know what could be happening?

+1  A: 

I don't know why that's happening (definitely weird) but I did notice that you're using the actual character instead of the HTML encoding version ™ which would work regardless.

Jason
+2  A: 
adrianbanks
I suspect the faulty use of `<base>` (should be in the `<head>`, not at the start of the document) may also cause the browser to ignore the `<meta>` where the character set is declared. IMO better to fix this than resort to HTML entity references (after all there may be other Unicode characters you want to use).
bobince
Yes, I'd agree. I validated the redirected page and there were several other problems that looked like they were caused by the `base` tag being in the wrong place.
adrianbanks
A: 

It turns out that there was an issue with the TM symbol in the database. Once it was removed and added back in, everything seems to work fine.

jwynveen