Jump to content

Simple PHP command to convert special characters?


mjurmann

Recommended Posts

Hello, I have a string that contains the ™ symbol. When the string is echoed, instead of the ™ symbol appearing, I see a "?" (question mark). I'm working on a project for someone and I don't want to have to enter in the special codes for these special characters, so is there any way to decode that ™ symbol within the string and then have it echo out the ™ rather than echoing out a "?" ?

 

Thanks in advance.

This doesn't seem to be working. Fortunately, I only believe that they will be using the ™ symbol and therefore I'd like to do a simple find and replace within the string (find ™, replace with ™).

 

Can someone please point me to the correct function to do this?

 

Thanks in advance.

You're only doing that in one specific instance correct? If you applied that function to entire post or all the text on the page, you could possibly screw up words like leftmost, hitman, batman, litmus, nutmeg, oatmeal, etc. I could go on ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.