i've set the meta and check mysql appears to be on utf 8 already, what seems to be the issue here?  HTML  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;     PHP DB connection  $DB_NAME = 'ssl'; $DB_HOST = 'localhost'; $DB_USER = 'dbuser'; $DB_PASS = 'dbpass';  $mysqli = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);   // $mysqli-&gt;character_set_name(); mysqli_set_charset($mysqli,"utf8");   if (mysqli_connect_errno()) {     printf("Connect failed: %s\n", mysqli_connect_error());     exit(); }   Querying for output   $query = $mysqli-&gt;query("select {$translate_to} as lang from locale_cn where {$translate_from} = '$phrase' ");         $row = mysqli_fetch_array($query);   Display  &lt;h1&gt;&lt;?php echo translate("In-Kind Donation"); ?&gt;&lt;/h1&gt;   tried setting header('Content-Type: text/html; charset=UTF-8') as well but the result is still the same    Edit: add in translate function info   function translate($phrase) {      if(!isset($_SESSION))      {          session_start();      }      require 'db/mysql.php';          $_GET['lang'] = $_SESSION['lang'];         $lang_session = $_GET["lang"];          if($lang_session == 'CN') {             $translate_from = 'EN';             $translate_to = 'CN';         }          else {             $translate_from = 'CN';             $translate_to = "EN";         }           $query = $mysqli-&gt;query("select {$translate_to} as lang from locale_cn where {$translate_from} = '$phrase' ");         $row = mysqli_fetch_array($query);          if(isset($row['lang']) &amp;&amp; $row['lang'] !== ""){              return $row['lang'];         }         else{            return $phrase;         }     }
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.
How to put a full-width table at the top or bottom of the same two-column page as the reference text? Do Fortnite V-Bucks Purchases Save on All Platforms? So I'm thinking of buying some V-Bucks on Fortnite, Battle Royale mobile. Do the purchases save cross platform? How do regular expressions differ from wildcards used to filter files proof of functional completeness of logical operators If I know that the set of operators {∨, &amp; , ¬} is functionally complete, how do I go about proving/disproving the functional completeness of the following set of operators?  a) $\{\vee,\neg\}$  b) $\{\to,\neg\}$  c) $\{\to\}$  I have looked at the answer here for (b) : Extended support for Ubuntu 12 Not sure if there is a better communication mechanism for asking this question. Ubuntu 12 is EOL April 2017. Do corporations have any option to extend support on 12?  Thanks Show that $K[x,xy,xy^2,\dots]$ is not Noetherian Here is the problem I am stuck on: Fix a field $K$ and consider the subring $A \leq K[x,y]$ generated by $K \cup \{x,xy,\dots,\}$. Show that $A$ is not Noetherian.  I figure that taking ideals $I_n = (x,xy,\dots,xy^n)$ should give an infinite strictly ascending chain, which would establish that $A$ is not Noetherian, but I cannot figure out how to show that each $I_n$ is a proper subset of $I_{n+1}$. Any help here? I am running Ubuntu 14.04 from Windows, using virtualbox 5.0. I tried several options to make size of Ubuntu in virtual box larger, but none helped so far.   I am using latest virtual box with latest guest add on installed. sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 I went to Ubuntu 'software and Updates' and made sure that under 'Additional Drivers' tab, 'using x86 visualization solution...' is active. In virtualbox window, under view->virtual screen 1, all 'resize to' options are disabled.   None of these options helped. This is frustrating. Any comments or help? Can the problem be I am using 64 bit system? Does this problem occurs in earlier/later versions? If not, please suggest a 'good' version of Ubuntu for virtualbox. Using modulo operation to draw graph .NET How to check if path is a file and not a directory? I have a path and I need to determine if it is a directory or file.    Is this the best way to determine if the path is a file?  string file = @"C:\Test\foo.txt";  bool isFile = !System.IO.Directory.Exists(file) &amp;&amp;                           System.IO.File.Exists(file);   For a directory I would reverse the logic.  string directory = @"C:\Test";  bool isDirectory = System.IO.Directory.Exists(directory) &amp;&amp;                              !System.IO.File.Exists(directory);   If both don't exists that then I won't go do either branch.  So assume they both do exists. Let $a,b,c $ are non-negative real numbers, and $a+b+c=3$.  How to prove inequality $$ ab^2+bc^2+ca^2\le 4.\tag{*} $$    In other words, if $a,b,c$ are non-negative real numbers, then how to prove inequality $$ 27(ab^2+bc^2+ca^2)\le 4(a+b+c)^3.\tag {**} $$ $\color{gray}{\mbox{(Without using "universal" Lagrange multipliers method).}}$  Thanks! How to change font-size, number of rows / columns in the console I'm running a Linux server without X11 or any kind of GUI, with a modern 22" LCD monitor.  Given the huge size of my monitor, I would like to increase the number of rows and columns in my console, how can I go about achieving it? let $\gamma$ be a closed continuosly differentiable path in the upper half plane  not passing through $i$. What are the possible values of the integral $$\frac{1}{2\pi i}\int_{\gamma}\frac{2i}{z^2+1}dz$$ well the integral can be broken like  $$\frac{1}{2\pi i}\int_{\gamma}\frac{2i}{(z+i)(z-i)}dz=$$  $$\frac{1}{2\pi i}\int_{\gamma}\frac{dz}{z-i}dz-\frac{1}{2\pi i}\int_{\gamma}\frac{dz}{z+i}dz=$$ by Cauchy Integral Formuale $$f(i)-f(-i)$$,so the second integral is $0$ as it is analytic in the upper half plane, but the first integral iss just $n(\gamma,i)$, which iss the windding number of $\gamma$ around $i$ what more I can say? Thank you. Pairs of numbers with a given LCM Sugar daddy wants my online banking login info to make deposits — is it a scam? Passing parameters from test methods How many research interests should be included in a statement of purpose/objective I am wondering how many research interest should be included in a statement of purpose. Is it better to include just one core interest or to include up to three as in my case? We all know that in an idealised world all objects accelerate at the same rate when dropped regardless of their mass.  We also know that in reality (or more accurately, in air) a lead feather falls much faster than a duck's feather with exactly the same dimensions/structure etc.  A loose explanation is that the increased mass of the lead feather somehow defeats the air resistance more effectively than the duck's feather.  Is there a more formal mathematical explanation for why one falls faster than the other? How to avoid noisy renders in Cycles? How can I always run the command prompt as administrator? Blender 2.8 - How to access material nodes?