hi there I made i database in mysql with collation utf_unicode_ci ; my code is   &lt;html&gt;&lt;head&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;/head&gt; &lt;?php $db=mysqli_connect("localhost","saeb","123456"); if (!$db) echo "not connected"; mysqli_select_db($db,'publisher'); $select_book="select * from books"; $result = mysqli_query($db,"$select_book"); $num=mysqli_num_rows($result); $i=1; while($i&lt;=$num){ $row=mysqli_fetch_array($result);     // printf ("%s (%s)\n",$row[0],$row[1]);     echo "&lt;br&gt;"; echo $row['auther']; $i++; }  // for ($i=0; $i &lt;$num ; $i++) { //   $row=mysqli_fetch_array($result); //   echo "&lt;br&gt;"; //   echo $row['isbn']; //   # code... // } // var_dump(mysqli_get_charset($db));   ?&gt; &lt;/html&gt;   but what I see is (i dont know what i must to execute php code in english)     sepidnam ???????? Tanenbaum Abbasnejad   where is problem?why arabic texts converted to ???? ?
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 do you serialize an object in C++? I have a small hierarchy of objects that I need to serialize and transmit via a socket connection.  I need to both serialize the object, then deserialize it based on what type it is.  Is there an easy way to do this in C++ (as there is in Java)?  Are there any C++ serialization online code samples or tutorials?  EDIT: Just to be clear, I'm looking for methods on converting an object into an array of bytes, then back into an object.  I can handle the socket transmission. Is it "5–6 weeks are a lot of time" or "5–6 weeks is a lot of time"? I was just copyediting  and my native English speaker Sprachgefühl told me I had to correct the grammar of one sentence:     ... 5–6 weeks are a lot of time ...   by changing the are to is. But as I was doing so I started wondering why is it that in this case it seems that I have to make the verb disagree with the plural subject?  So is my feeling for English going bad or if I did the right thing, how could I explain this to somebody who's learning English for instance? How to organically merge nested associations? Is there a proof that $\pi$ is an irrational number? Most math texts claim that $\pi$ is an irrational number. However, I'm having a little bit of trouble understanding that.  Since nobody has calculated all of the digits of $\pi$, how can we know that either:   one of the digits repeats (as in $\frac{10}{3}$) the number eventually terminates     Note: Please be very descriptive in your answers... I don't have anything beyond high school math. Prove that the expression cannot be a power of 2 Autorun.inf in Windows 8/8.1 for USB Drives I have created a file named autorun.inf to make one of my software setup run when the usb is plugged into Windows 8/8.1 OS .  This is my autorun.inf code:   [AutoRun] shellexecute="Mem.exe //It would be nice if i could add path to this like my Doc//mem.exe UseAutoPlay=1   Is there any software that let's us to create auto-run files for USB Sticks?  Is there any way to add new options in right click menu only on my USB window? In the sentence: "Drinking and driving IS dangerous", why does the verb "to be" need to be singular? In the sentence: "Drinking and driving is dangerous". Drinking and driving are both subjects and the word dangerous is the object (I think) but why do I have to use the verb to be in singular? What "exactly" happens when someone turns to the Dark Side? HTTP GET request in JavaScript? I need to do an  request in JavaScript. What's the best way to do that?  I need to do this in a Mac OS X dashcode widget. Which is the simplest way to update a Label from another Thread?   I have a Form running on thread1, and from that I'm starting another thread (thread2).  While thread2 is processing some files I would like to update a Label on the Form with the current status of thread2's work.   How could I do that? Using the inference of mean as an example, the null and alternative hypothesis could be  $$H_0: \mu \le 0 \Leftrightarrow H_1: \mu &gt; 0$$  It is often argued that this makes the calculation of the $p$-value (or critical region) easier, but from my understanding the $p$-value is $P(\bar{X} &gt; 0|H_0) \stackrel{\color{red}{?}}{=} \sup_{\theta \in H_0} P(\bar{X} &gt; 0 | \theta )$. Since I'm taking its supremum, the $p$-value doesn't change regardless of whether the equality sign is included. The same result goes for the critical region. However, I'm not sure if my understanding is correct, and my doubt is marked with a red question mark above.  Anyway, I wonder if it's correct (I know that would be unconventional, though) to write  $$H_0: \mu &lt; 0 \Leftrightarrow H_1: \mu \ge 0$$  If that's OK, what about its $p$-value and critical region? If that's not OK, I would be really surprised, because in that way we are changing the question ("Is $\mu$ less than or equal to zero?") to something different ("Is $\mu$ less than zero?") Which way is up? (electric outlet) My house has electric outlets in both orientations.  Which one is correct?  Should the ground hole be at the bottom or the top?    OR Order of products of elements in a finite Abelian group We want to show that if $a,b\in G$ where $G$ is a finite Abelian group, we have  $\operatorname{LCM}(|a|,|b|) = |ab|$ given that $ab \neq e$.   How I approached this question was by saying let $\operatorname{LCM}(|a|,|b|) = L$. Then if we show that $L$ divides $|ab|$ and $|ab|$ divides $L$ then $|ab| = L$. Showing that $|ab|$ divides $L$ was fine. But then I am having trouble with the second part that is showing $L$ divides $|ab|$. For this, so far I have:  Consider $(ab)^{|ab|} = e = a^{|ab|}b^{|ab|} $  since we know $a \neq b^{-1}$ by assumption then we can conclude that $|a|$ divides $|ab|$ and $|b|$ divides $|ab|$. We know that $L = \frac{|a||b|}{\operatorname{gcd}(|a|,|b|)}$ from here can we conclude that $L$ divides $|ab|$? I've heard many times that it's bad to use display: none for SEO reasons, as it could be an attempt to push in irrelevant popular keywords. A few questions:   Is that still received wisdom? Does it make a difference if you're only hiding a single word, or perhaps a single character? If you should avoid any use of it, what are the preferred techniques for hiding (in situations where you need it to become visible again on certain conditions)?   Some references I've found so far:       If you're straight-out using CSS to hide text, don't be surprised if that is called spam. I'm not saying that mouseovers or DHTML text or have-a-logo-but-also-have-text is spam; I answered that last one at a conference when I said "imagine how it would look to a visitor, a competitor, or someone checking out a spam report. If you show your company's name and it's Expo Markers instead of an Expo Markers logo, you should be fine. If the text you decide to show is 'Expo Markers cheap online discount buy online Expo Markers sale ...' then I would be more cautious, because that can look bad."   And  on the same article     We can flag text that appears to be hidden using CSS at Google. To date we have not algorithmically removed sites for doing that. We try hard to avoid throwing babies out with bathwater.   Eric Enge      The legitimate use of this technique is so prevalent that I would rarely expect search engines to penalize a site for using the display: none attribute. It’s just very difficult to implement an algorithm that could truly ferret out whether the particular use of display: none is meant to deceive the search engines or not. Find the value of $g'(0)$. Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a continuous function with $f(1) = 5$ and $f(3) = 11$. If $g(x) = \int_1^3 f(x+t)dt$ then find $g'(0).$   Please explain your answer. Using Thunderbird and gmail, sent items appear as unread in "All Mail" I'm using a gmail account in Thunderbird. When I send a message, a new mail notification appears (sound and system try icon), an unread message appears in the gmail All Mail folder, and the account name turns blue.  I have to click on "Sent Mail" or "All Mail" to get rid of the notification. Unsubscribing from "All Mail" is not effective (it still turns the account name blue).  This seems to be popping up elsewhere (), but nobody has posted a helpful answer.  How do I keep Thunderbird from thinking that a sent message is new unread mail in the All Mail folder? Max Serial Cable Length? What is the maximum length of serial cable I can use, to connection work properly? Is length of serial cable in connection with baud rate? I am using about 5 meter cable at speed 38400 bauds and RS232 communication, is it too long? What species of insect is this? I saw this insect near a beach in Corsica France: Not including stdlib.h does not produce any compiler error! What is the expected value of the maximum of 500 IID random variables   with uniform distribution between 0 and 1?   I'm not quite sure of the technique to go about solving something like this. Could anyone point me the right direction?  Thanks