Arabic and Hindi Data not Showing Correctly PHP I uploaded csv file using phpmyadmin, and it is correctly uploaded and data is displayed correctly as showing in the following image. Table Structure  Data in the Database  But on browser it is showing like this, means unreadable just ????? Showing on the page.  Here is how i am getting data using php function get_quran_surat(){         $query =&quot;select suraid,suraname from quran group by suraid,suraname&quot;;         $result=$this-&gt;query($query);         $this-&gt;setcharset();         $rows=array();         while($row=$this-&gt;fetch_array($result)){             $rows[]=$row;         }         return $rows;    }  Also add the utf-8 in head section of the page.  Edited Table Structre  Question How can i show readable data in the browsers ?
UTF-8 all the way through 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.
"batch" tag turns into "batch-file" There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also: Do I say "I study computer science," or "I study Computer Science"? Similarly, "I really liked that computer science course," vs. "I really liked that Computer Science course." Sort arrays of primitive types in descending order A weak converse of $AB=BA\implies e^Ae^B=e^Be^A$ from "Topics in Matrix Analysis" for matrices of algebraic numbers. It is a well known fact that if $A,B\in M_{n\times n}(\mathbb C)$ and $AB=BA$, then $e^Ae^B=e^Be^A.$  The converse does not hold. Horn and Johnson give the following example in their Topics in Matrix Analysis (page 435). Let $$A=\begin{pmatrix}0&amp;0\\0&amp;2\pi i\end{pmatrix},\qquad B=\begin{pmatrix}0&amp;1\\0&amp;2\pi i\end{pmatrix}.$$ Then $$AB=\begin{pmatrix}0&amp;0\\0&amp;-4\pi^2\end{pmatrix}\neq\begin{pmatrix}0&amp;2\pi i\\0&amp;-4\pi^2\end{pmatrix}=BA.$$ We have $$e^A=\sum_{k=0}^{\infty}\frac 1{k!}\begin{pmatrix}0&amp;0\\0&amp;2\pi i\end{pmatrix}^k=\sum_{k=0}^{\infty}\frac 1{k!}\begin{pmatrix}0^k&amp;0\\0&amp;(2\pi i)^k\end{pmatrix}=\begin{pmatrix}e^0&amp;0\\0&amp;e^{2\pi i}\end{pmatrix}=\begin{pmatrix}1&amp;0\\0&amp;1\end{pmatrix}.$$   For $S=\begin{pmatrix}1&amp;-\frac i{2\pi}\\0&amp;1 \end{pmatrix},$ we have $$e^B=e^{SAS^{-1}}=Se^AS^{-1}=S\begin{pmatrix}1&amp;0\\0&amp;1\end{pmatrix}S^{-1}=\begin{pmatrix}1&amp;0\\0&amp;1\end{pmatrix}.$$   Therefore, $A,B$ are such non-commuting matrices that $e^Ae^B=\begin{pmatrix}1&amp;0\\0&amp;1\end{pmatrix}=e^Be^A.$  It is clear that $\pi$ is important in this particular example. In fact, the authors say what follows.      It is known that if all entries of $A,B\in M_n$ are algebraic numbers and $n\geq 2,$ then $e^A\cdot e^B=e^B\cdot e^A$ if and only if $AB=BA.$   No proof is given. How does one go about proving that? Default poster size What is the typical size for a conference poster? Is it "ask the organizers", or can I safely assume that I'll get a default size, and that there will be enough space to hang it at the poster session? Binary search (bisection) in Python Is there a library function that performs binary search on a list/tuple and return the position of the item if found and 'False' (-1, None, etc.) if not?  I found the functions bisect_left/right in the , but they still return a position even if the item is not in the list. That's perfectly fine for their intended usage, but I just want to know if an item is in the list or not (don't want to insert anything).  I thought of using bisect_left and then checking if the item at that position is equal to what I'm searching, but that seems cumbersome (and I also need to do bounds checking if the number can be larger than the largest number in my list). If there is a nicer method I'd like to know about it.  Edit To clarify what I need this for: I'm aware that a dictionary would be very well suited for this, but I'm trying to keep the memory consumption as low as possible. My intended usage would be a sort of double-way look-up table. I have in the table a list of values and I need to be able to access the values based on their index. And also I want to be able to find the index of a particular value or None if the value is not in the list.  Using a dictionary for this would be the fastest way, but would (approximately) double the memory requirements.  I was asking this question thinking that I may have overlooked something in the Python libraries. It seems I'll have to write my own code, as Moe suggested. Can I use a one-way ticket to come to the UK? Or do I need to show a return ticket to be able to get in? How can we prove that     $$\sum_{k=0}^{n}\binom{R}{k}\binom{M}{n-k}=\binom{R+M}{n}?$$   (Presumptive) Source: Theoretical Exercise 8, Ch 1, A First Course in Probability, 8th ed by Sheldon Ross. When something gets wet, it usually appears darker. This can be observed with soil, sand, cloth, paper, concrete, bricks...  What is the reason for this? How does water soaking into the material change its optical properties? A special bijection between $\mathbb{R}\times \mathbb{R}$ and $\mathbb{R}$ Calculate Limit 0f nested square roots Cycles not rendering image or movie clip used as background in the viewport How do you easily horizontally center a  using CSS? I'm trying to horizontally center a &lt;div&gt; block element on a page and have it set to a minimum width. What is the simplest way to do this? I want the &lt;div&gt; element to be inline with rest of my page. I'll try to draw an example:  page text page text page text page text page text page text page text page text                -------                | div |                ------- page text page text page text page text page text page text page text page text OpenLayers low resolution and/or shifts in QGIS print composer? I'm having trouble with the OpenLayers Plugin of Qgis and the map composer:  If I create an OSM-background layer and if I want to export this, the OSM-Layer looks perfectly all right in the normal qgis program window. But in the map composer and after export the layer has shifted relatively to my other shape layers (EPSG:32633 - WGS 84 / UTM zone 33N).  The second thing is that the output resolution of the exported osm-layer is very, very poor.   A really bad way of getting around this whole trouble would be to increase the screen resolution and make a screenshot of the map composition window of qgis. But I don't think this would be very professional. It also would cause a lot of pain :)   I'm using Qgis 1.8.0-Lisboa under Linux. The openlayers plugin is version 0.92. Show that $\ker \hat{T} = \text{ann}(\text{range } T)$ Visiting two Schengen countries, coming back home in between, do I apply for single-entry or multiple-entry visa? Combining all the address fields into one? Reading a binary file and using Response.BinaryWrite() "Meet my boss" or "meet with my boss"? What is the difference between "meet" and "meet with"?  For example, which of these should I say?        I met my boss yesterday    I met with my boss yesterday   I'm meeting my friends tonight    I'm meeting with my friends tonight