What is the way to escape unicode characters using PHP?
-
Hello, I am having several strings like §ion but when I am echoing it using PHP it converts it to §ion as Unicode character § 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
Other answers
json_decode() function.... may be it may help u solve your problem..
Scott Perison
Related Q & A:
- How To Build Business Directory Using Php Mysql?Best solution by Stack Overflow
- how delete node in xml file using php?Best solution by Stack Overflow
- How to read csv file using php?Best solution by Stack Overflow
- What are the advantages and the disadvantages of using fossil fuels?Best solution by Yahoo! Answers
- What is an easy code for a form in PHP?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.