I'm building a chat application in which I'll be using emoticons, so the problem is that when I enter and send the text, for eg. -  "Hahha this is so funny 😂" In MySQL, it gets saved as "Hahha this is so funny ??"  Can anyone tell me how to detect whether the string being saved to server contains an emoji and if it does, then accordingly convert the emoji part to special unicode format?  Thanks a ton!
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.
Body Diode of a MOSFET So for some MOSFETs, specially with Power MOSFETs, the body diode is a flyback diode that (as far as aI can tell) can be conveniently added to the MOSFET's bulk as there already PN junctions (correct me if I'm wrong).  I've looked at the datasheet of a Power P-MOSFET and it has parameters like "Internal Source Inductance" and "Internal Drain Inductance". So, is the build up of reverse voltage on the source and drain sides, when said MOSFET is suddenly turned off, a behavior intrinsic to (at least some) MOSFETs? Or are these from the rest of the circuit, say inductive loads? How can I start a process over SSH such that it will continue to run after I disconnect? How to output multiple image sizes from one design? I am designing an app for Android and as you may know that Android uses 6 different density buckets from LDPI to XXXHDPI.   Is there a way to save multiple outputs of different sizes from one design using either Photoshop, Illustrator, or another software?  If not will I have to resize it 6 times or is there an easy way? How do I identify which CPU a MacBook uses? How to make a Copper/Rose Gold smudge material? Android Nougat .  It adds features such as multi-window support.  You can review the high-level changes at .  Of course, not all devices will get this update right away, even at release; others won't get it at all. Manufacturers and carriers often choose to add their own custom modifications, which tend to delay the official release.  When will each device get Nougat, either officially or unofficially, if ever?  See also: Movie/TV series with a scene of spiky, black goo growing out of a lab container? There was a scene from a sci-fi horror video, not animated, don't know if it's a movie or TV series, where there was this black goo in a glass container and some scientists were looking at it under a microscope.   The pitch black goo grew and grew so fast, eventually breaking out of the inner box and the scientists that were inside the "inner lab" were begging to get out but the scientists outside that inner lab refused to open the door. The black goo was spiky (had spikes).  It's not any of the "Alien" movies, "The Blob", "Life", or "The Thing". It's not vintage. It was made after 1990, I'm pretty sure. I have been wanting to understand how to find the sum of this series.   $$1^p + 2^p + 3^p +{\dots} + n^p$$  I am familiar with Gauss' diagonalised adding trick for the sum of the first $n$ natural numbers.  I can prove the formulas for  $$\begin{align}   \sum_{1}^{n} k^2 &amp;= \frac{n(n+1)(2n+1)}{6}\\  \sum_{1}^{n} k^3 &amp;= \frac{n^2(n+1)^2}{4}\\ \sum_{1}^{n} k^4 &amp;= \frac{n(n+1)(2n+1)(3n^2+3n-1)}{30} \\ \end{align}$$  With mathematical induction. But, beyond that even proofs with mathematical induction are difficult.  I'm interested in learning the theory and the proof behind Faulhaber's formula. What is the knowledge required to understand this proof ? A question about the equivalence relation on the localization of a ring. Pointwise limit of continuous functions not Riemann integrable Python as a statistics workbench Holomorphic function has at most countably zeros Since i upgraded to Ubuntu 15.04, if i click on the shutdown button it only logs out and i have to click again on the shutdown button (from the ubuntu login screen) to power off the pc. How can i fix this? What is the noun for someone who receives a referral? When a referrer (noun) gives a referral (noun) to another person, what is the term (noun) used for the recipient of the referral? "The referred" may work, but am I missing another term? "Referred" indicates past-tense, but I intend to use the term in future and present tense as well. What is the Big-O time complexity of the following nested loops: for (int i = 0; i &lt; N; i++) {     for (int j = i + 1; j &lt; N; j++) {         System.out.println(&quot;i = &quot; + i + &quot; j = &quot; + j);     } }  Would it be O(N^2) still? Annuity notation in LaTeX What is the behavior of "delete" with stack objects? I'm trying to prove : Given a simple graph $G$ with $n$ vertices, where $n$ is even, prove that if every vertex has degree $\dfrac n2 + 1$, then $G$ must contain a (simple) $3$-cycle. A (simple) $3$-cycle is a set of $3$ (distinct) vertices, $a, b, c$ such that $ab$ is an edge, $bc$ is an edge and $ac$ is an edge.  I know there are similar ones already on here, but I can't comprehend any of the answers. This is what I have so far:  Base Case: Since the graph has to have at least $3$ vertices to have a simple $3$-cycle, the lowest possible even number of vertices is $n = 4$.   $\dfrac42 + 1 = 3$ degree (edges attached to node). This means each vertex connects to each of the other $3$ vertices since $G$ is a simple graph. Thus, any combination of $3$ vertices will be a simple $3$-cycle.  Inductive Hypothesis: Assume a simple graph with $k$ vertices, where $k$ is even, contains a simple $3$-cycle if each vertex has degree $\dfrac k2 + 1$.  Inductive Step: Since only concerned about when the graph has an even number of vertices, going to show a simple graph with $k + 2$ vertices, where $k$ is even, contains a simple $3$-cycle if every vertex has degree $\dfrac{k+2}{2} + 1$   This is as far as I get and don't know how to finish the Inductive Step (Also please feel free to let me know if I messed anything up, up to this point) How do I start a process from C#? How do I start a process, such as launching a URL when the user clicks a button? I am travelling to Calgary from Delhi. I have an Air India flight from Delhi to Dubai then British Airways flight from Dubai to London and Air Canada flight from London to Calgary. My query is "Do I require a transit visa." Plz help as I am travelling in four days