I have a db and I've saved some persian terms like "کامپیوتر" in it. They are saved without any problem. But when I want to fetch them from db with $_GET method, they are not what I saved before and I see "?????" instead of them. I encoded all of my .php and .html to utf8 format, but the problem was not fixed. I will appreciate if you help me fix it ...
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.
Chrome S3 Cloudfront: No 'Access-Control-Allow-Origin' header on initial XHR request How to unprotect GeneratingFunction Assignment statement used in conditional operators How to Disavow Bad Backlinks Automatically? Expected Value of the maximum of two exponentially distributed random variables I want to find the expected value of $\text{max}\{X,Y\}$ where $X$ ist $\text{exp}(\lambda)$-distributed and $Y$ ist $\text{exp}(\eta)$-distributed. X and Y are independent. I figured out how to do this for the minimum of $n$ variables, but i struggle with doing it for 2 with the maximum.  (The context in which this was given is waiting for the later of two trains, with their arrival times being exp-distributed).  Thanks! I'm downloading Sentinel-2 tiles from  but they dont seem to be 100 % aligned. Right image is band 08 Sentinel-2 added to ArcGis Desktop (i have done nothing more than adding the 08.jp2 to the map), left esri basemap photo. The offset in Sentinel is about 35-40 meters. How do i correct them?    . Level-1C, Sentinel-2:   SOLUTION:  From HDunn's answer i did this:  Using a road vector layer i added five point pairs and calculated difference in x and y coordinates. The mean differences i used as xvalue and y value in Shift tool. Result: Is it possible to install MySQL 5.5 or 5.6 on Ubuntu 16.04? I recently upgraded to Ubuntu 16.04. Unfortunately I need to work MySQL 5.5 or 5.6. I tried many solutions to have MySQL 5.5 or 5.6 run on Ubuntu 16.04 like this  . But none of them is working. Ubuntu detect the unmet dependencies but says "but it is not going to be installed" for 5.5 or says Package 'mysql-server-5.6' has no installation candidate...  Is it not possible to force an earlier version of MySQL on Ubuntu? Why is that? How can I fix a 404 Error when using a PPA or updating my package lists? PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors? Gibbs free energy intuition What is ? As my book explains:     Gibbs energy is the energy of a system available for work.   So, what does it want to tell? Why is it free? Energy means ability to do work. What is so special about this energy? Can anyone simply explain?   I just want a math-free intuition. Recommend a statistics fundamentals book To give you some background, I have a grasp on the basics of statistics and probability theory and even remember touching Bayes theorem at the university data mining course. But being a few years away from the university made my math got extremely rusty (so much for last-minute pre-exam cramming). While I remember various random basic concepts, there are a lot of gaps in my understanding of them.  What would be a good material (a book, a site, or otherwise equally accessible medium) to revise the fundamentals and go beyond basics? I'd like a book that can be actually read as a book (most statistics books are really dry and are close to being reference material, rather than a book). What happens when I connect a 2 amp charger instead of the 0.7 amp charger provided? Possible Duplicate:             I have a phone with 0.7 amp charger. I also have a Galaxy Nexus with a 2 amp charger.  If I connect the 2 amp charger into my phone, will my phone blow up? How to upgrade Git on Ubuntu Hardy? What causes 5 pink bars on 27" iMac (2011)? I've got a 27 inch iMac made in 2011 that displays 5 pink vertical bars on the screen. It won't boot properly. I ran the Apple Hardware Test and it came up clean.   Machine Specs:  Apple Subfamily:    Mid-2011  Apple Model No: A1312 (EMC 2429) Model ID:   iMac12,2 Sophix tablet will not work without an SD card My Sophix tablet was working without the SD card, but now the camera will not work. I get the following error message:     Insert a SD card before using. Difference between differentiation and derivatives What is the difference between differentiation  and derivatives of a function ? Prevent external devices being locked to launcher If I connect an external device (such as a USB stick or android smartphone) it will automatically open in nautilus and get a corresponding icon locked to unity launcher. Is there any way to prevent this?  I'm using Ubuntu 14.04 How to extend my root (/) partition? NetGear A6100 AC600 wireless adapter not working in Ubuntu 20.04. Worked fine in 18.04. Not same problem as previously Firstly, I know very well there are answers to this already. But, in my case, it is installed and shows in the terminal as such Bus 001 Device 007: ID 0846:9052 NetGear, Inc. A6100 AC600 DB Wireless Adapter [Realtek RTL8811AU]  It says it is installed in  as well.  I have tried downloading the driver for this adapter from several guides online, linking to GitHub, but no luck there either...  Any help is greatly appreciated! Thanks in advance!  EDIT: The answer from sudo dkms status command reads:  rtl8812au, 4.3.8.12175.20140902+dfsg, 5.4.0-31-generic, x86_64: installed  The other command  modinfo 8812au | grep 9052   spits out the following:  alias:          usb:v0846p9052d*dc*dsc*dp*ic*isc*ip*in* Stochastic processes book suggestions. I would like to find a book that introduces me gently to the subject of stochastic processes without sacrificing mathematical rigor. It would be great if the book has lots of examples and that the book is designed for undergraduates. Just like how there are rigorous undergraduate abstract algebra books (I am thinking of GAllian's contemporary modern algebra here).   I already studied measure theory, and prob. theory.  Thank you. I don't know what exactly it's called, by cache refresh I mean, refresh the page after clearing its cache. I don't want to clear the entire browser cache.  I can't seem to cache refresh my pages. In Firefox, I know it to be Shift+Refresh.  In Chrome, I've tried Ctrl+R, Ctrl+Refresh, Alt+Refresh, Shift+Refresh but none of them work.