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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.