PHP is displaying questionmark (???) for unicode
One of the fun things in php-mysql is working with Unicode characters. It is so cooked that, we should almost eat those with a little bit adjustment.
I am not going to tutor on how to use php-mysql unicode stuff – there are a bunch of ’em out there.
Rather I would discuss an error that would be common while doing your stuff..
Once you configure everything and put your unicode to mysql, you might see the output of it being questionmark on the browser – but you see the correct unicode in the database through the phpmyadmin.. it is this single line of code you would ever need…
mysql_query(“SET NAMES ‘utf8′”, conn); where the conn is the result of your connection – mysql_connect();
You can modify it accordingly, for example I am using an object oriented one so I can issue the query from my object – you would need to do this only once.
Happy unicoding..
See how you would solve these known algorithm problems
Finding missing numbers from billion sequential number list fileArray reversal in Recurrsion
testing k complementary pairs algorithm with junit
Implementing tokenizer and adding tokens to the linked list
Check if two strings are anagrams or not
Java solution for checking anagram strings – tell if phrases are anagrams
Kadane’s algorithm in C – Dynamic Programming
Find longest palindrom from sequence of characters
Flatten nested javascript array
Find the pairs that makes K Complementary in the given array java solution