Harry![]() Total thread: 131 Total reply: 50 Post #174 | How to store unicode string into mysql and load it to generate json From time to time, I often need to store unicode string into MySQL then read/query it to generate json string, i have done this task a few time but i always forget how to do it, so this post is simply just to remind me of how to do it properly again in the future. INSERT to MySQL, use mysql_real_escape_string() directly without any other escape technique ' '.str_replace('' READ QUERY: ' '.str_replace('' Falling in love with the world Write : 2016-04-15 15:01:47 Last edit : 2016-04-15 15:03:46 |
www.OTAK.INFO
Since 19 January 2007 Page hit : 858,685 Code update 24th June 2013 |
Brain is a very capable to solve big problems
but requires constant reminders about how to. ![]() |
|