I have a problem with my Display datas from Mysql php page. My problem is when I want to display some hungarian specific chars like "á" or "é" they replaced with question marks. I set all of my tables and rows to utf8_hungarian_ci, and the entire table and rows to utf8_unicode_ci, but it doesn't work. A tried in my php code to set this "header(Content-Type: text/html; charset=utf-8)" at the beginning of my php code, but i haven't got any success with that. Can anybody help me? Thank you! Edit: The code that I trying to use:  &lt;?php header('Content-Type: text/html; charset=utf-8'); function testfun() {   $con=mysqli_connect('blabla"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); }  $result = mysqli_query($con,"SELECT * FROM adatok");  echo "&lt;table border='1'&gt;";  $i = 0; while($row = $result-&gt;fetch_assoc()) {     if ($i == 0) {       $i++;       echo "&lt;tr&gt;";       foreach ($row as $key =&gt; $value) {         echo "&lt;th&gt;" . $key . "&lt;/th&gt;";       }       echo "&lt;/tr&gt;";     }     echo "&lt;tr&gt;";     foreach ($row as $value) {       echo "&lt;td&gt;" . $value . "&lt;/td&gt;";     }     echo "&lt;/tr&gt;"; } echo "&lt;/table&gt;";  mysqli_close($con);   }    testfun();  ?&gt;
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.
FICA was not withheld from my paycheck Hello personal finance,  I was filing my taxes for 2016 and I just found out that I transitioned from Non-Resident-Alien to Resident Alien around September last year by passing substantial presence test. After doing some research, I have found out that I qualify as a resident alien for the whole tax year (from January 2016).   Unfortunately, my employer did not know about this change in status, so for all of 2016 no Social Security or Medicare taxes were withheld.   I have found out that I need to correct this, and I need help figuring out a few things.    Should I have a W-2 re-issued? I spoke to two accountants and one said I should, the other said I shouldn't. I don't know which one to believe.  Who pays for the FICA I should have paid last year? Is it my employer's problem to fix or mine?  Should I file the taxes with the old or the new W-2?  As best as I understand it, the new W-2 will be written as if I made this contributions. So there will be a discrepancy between what I actually earned and what the W-2 says. How should I handle this discrepancy? Declare it as extra income? Or claim it back in case I earned less than I should have? What does the factorial of a negative number signify? I understand that the factorial gives the number of arrangements. For example: the factorial of zero i.e. an empty set ( doesn't occur) is 1.   As the empty set can be arranged only in 1 way - i.e. by filling nothing. Now, let's take an example: 5 distinct seats. How many ways 5 distinct seats can be arranged? - 5! ways i.e. 120.  So, basically, factorial gives us the arrangements. Now, the question is why do we need to know the factorial of a negative number?, let's say -5. How can we imagine that there are -5 seats, and we need to arrange it? Something, which doesn't exist shouldn't have an arrangement right? Can someone please throw some light on it?. I saw some research done on the formula - Please provide a mobile-optimized captcha page Help me identify this fantasy book about two near-omnipotent wizard run empires If $u$ is harmonic and bounded in $0 < |z| < \rho$, show that the origin is a removable singularity This is a reworking of a previous question  which was marked as a duplicate. Some nice folks have referred me to solutions to similar problems. I still have a couple of questions, since one of the solutions used the Poisson kernel, which is not the desired solution in the text, because the Poisson kernel has not been introduced yet. The other solutions were for problems that were similar, but whose solutions were only partially applicable, as I understand them.  I'm working on a problem from p. 166 of Lars Ahlfors' Complex Analysis:     If $u$ is harmonic and bounded in $0 &lt; |z| &lt; \rho$, show that the origin is a removable singularity in the sense that $u$ becomes harmonic in $|z|&lt;\rho$ when $u(0)$ is properly defined.   My Solution So Far:   Here's what I've got for a non-Poisson kernel solution: We want to find a harmonic conjugate for $u$ in the punctured disk, and then we can apply big Picard to show that $0$ is a removable singularity. The problem is that the punctured disc is not simply connected.   If we take $\sigma = (u \circ \exp)(z): L \to \mathbb{C}$, where $L$ is the left half-plane, now we have $\sigma$ harmonic, and defined in a simply connected set $L$, so it has a harmonic conjugate $\tau$. Now we wish to take $v = (\tau \circ \log):\{0 &lt; |z| &lt; \rho\}\to \mathbb{C}$, but in order to do so we need $\tau$ to be $2\pi i$-periodic. This is where my proof breaks down.  One of the similar problems which readers referred me to used the following strategy: note that since $\sigma$ is $2\pi i$-periodic, and $\sigma, \tau$ satisfy the Cauchy-Riemann equations, we have that $\nabla\tau(z) = \nabla\tau(z + 2 \pi i)$ for all $z\in L$, or in other words, $\tau(z) - \tau(z+2\pi i)$ is a constant function, say, equal to $\alpha \in \mathbb{R}$. Then, the solution suggests, we can set $$g(z) = u + iv - \frac{c}{2\pi}z,$$  in order to make $g$ $2\pi i$-periodic, and then we can use $(g\circ \log)$ on $\{0 &lt; |z| &lt; \rho\}$. But the reason why this won't work for my purposes is: now we have changed $u$! On the other hand, we can't simply subtract $\frac{c}{2\pi}\Im{(z)}$, and try to leave $u$ untouched, because now $g$ is not analytic. How can we get around this?  Another strategy entirely might be to try to use the mean-value property. Ahlfors discusses that a lot in the preceding section, and his main example is the punctured disc. Since $u$ is harmonic, we know that the average over circles centered at zero is a constant... When no model comparison, should I use REML vs ML? I'm running LMM, and I will make no comparison of models. Could I ask which one should I use between REML and ML? I've got a recipe that calls for some buttermilk, but none on-hand. Is there some way I could use some common ingredient(s) as a substitute? The comments in  say that I shouldn't wait until low battery charge level before I charge, because that reduces battery life (this is contrary to my understanding before that the faster we charge (without waiting for battery to discharge) the worse it will be for battery life). My question is, when I should generally start charging to avoid this effect? 20%?   Interesting question: If we always limit the usage of the battery only 20% and above, won't we, in effect, reduces our battery capacity to 80%, because we will only use the battery in 20%-100% state? Is it possible to set up and watch a game between just computer AI opponents? No human players, just AI and have the ability to scroll around and see what the AIs are doing with the turn management being also automated, so the AIs just end turn when they are done. Oh, and all of this hopefully without any sort of fog of war.  This way, I can see how the AI manages resources and units and maybe learn a thing or two as a civ newb. Compute $ \lim\limits_{n \to \infty }\sin \sin \dots\sin n$ I need your help with evaluating this limit:  $$ \lim_{n \to \infty }\underbrace{\sin \sin \dots\sin}_{\text{$n$ compositions}}\,n,$$  i.e. we apply the $\sin$ function $n$ times.  Thank you. I have been racking my brain to understand the solutions of constrained stars and bars problems like:  $a+b+c+d = 19$;  $a,b,c,d \in \{0,1,2,3,4,5,6,7\}$  Finding the total number of solutions is really simple $\dbinom{22}{3}$.   What to do after that? I want to understand the entire procedure step by step.   Please do not mark it as a duplicate of .  Reasons:   The accepted answer's trick doesn't always work.   Another person (the answer with two upvotes) has just listed out the binomial coefficients and I can't even remotely understand what he has tried to do.   The second answer isn't my cup of tea. How do I use superposition to solve a circuit? Yes, this is a pedagogical question. While answering another recent question, I wanted to refer the OP to concise instructions for using superposition to solve circuits. I found that all the easily found resources online were somewhat deficient. Typically they were unclear about what kinds of circuits superposition applies to, or about the actual method to apply the superposition theorem to a circuit problem. So,   What kinds of circuits can be solved by superposition?  How are different kinds of sources treated when solving by superposition?  What are the steps to solve a circuit using the superposition theorem? Regular Expression to match valid dates What is the origin of "that's using your noggin"? I followed the instructions and got success response but I didn't receive email.  Then I used the id to get Email Status and got 404 error.  Here is my json :  POST :   {     "To": {         "Address": "example@gmail.com",         "SubscriberKey": "example@gmail.com.tw"     },     "Options": {         "RequestType": "ASYNC"     } }   GET : {id}  Please let me know how I can resolve the issue. How to calculate the difference between two dates using PHP? I have a laptop which is connected to the internet with ADSL modem, and I would like to share the internet for any laptop connecting to wireless router from my laptop using hotspot.  This is what I want:  ┌────────────────────┐ │ ADSL modem         │ └───┬────────────────┘     │ ┌───┴───────────────────────┐ │ laptop's wired adaptor    │ │                           │ │ Hotspot software          │ │                           │ │ laptop's wireless adaptor │ └───┬───────────────────────┘     │ ┌───┴──────────────────────┐ │ wireless router(linksys) │ └───┬──────────────────────┘     │ ┌───┴─────────────────────────────┐ │ Laptop computers and cellphones │ └─────────────────────────────────┘   How can I do that? Cardinality of set of real continuous functions I believe that the set of all $\mathbb{R\to R}$ continuous functions is $\mathfrak c$, the . However, I read in the book &quot;Metric spaces&quot; by Ó Searcóid that set of all $[0, 1]\to\mathbb{R}$ continuous functions is greater than $\mathfrak c$:  &quot;It is demonstrated in many textbooks that $\mathbb{Q}$ is countable, that $\mathbb{R}$ is uncountable, that every non-degenerate interval is uncountable, that the collection of continuous functions deﬁned on  $[0,1]$ is of a greater cardinality than $\mathbb{R}$, and that there are sets of greater and greater cardinality.&quot;  I understand that (via composition with the continuous function $\tan$ or $\arctan$) these sets of continuous functions have the same cardinality. Therefore, which claim is correct, and how do I prove this? Have Peter Capaldi's previous acting roles in the Doctor Who universe ever been addressed? Similar to this question posted in August 2014:       Has the fact that  (as  in The Fires of Pompeii, and  in Torchwood’s Children of Earth season) yet been addressed/explained either in, or out of universe? QR Codes generation from MySQL rows