How to combine Unicode characters?

What is the way to escape unicode characters using PHP?

  • Hello,             I am having several strings like &section but when I am echoing it using PHP it converts it to §ion as Unicode character &sect is present in it, I want to escape Unicode characters in it. What is the best way to escape it & display the string properly? Any help would be appreciated. Thank you.

  • Answer:

    I got the solution. We need to apply htmlentities function to that string & it works. Hope this helps.

Anonymous at Quora Visit the source

Was this solution helpful to you?

Other answers

json_decode() function.... may be it may help u solve your problem..

Scott Perison

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.