Getting a symbol from database is outputting � This is a very strange problem I have never experienced before.  I perform these following stataments  //Grabs the currency from the bank account $stmt = $db-&gt;prepare("SELECT * FROM accounts WHERE account_id = '$accountid'");         $stmt-&gt;execute();         $result = $stmt-&gt;get_result();         if($result-&gt;num_rows &gt; 0) {             while($row = $result-&gt;fetch_assoc()) {                 $bankcurrency = $row['currency'];             }         }         $stmt-&gt;close();  //Finds the symbol of the speicific currency         $stmt = $db-&gt;prepare("SELECT * FROM currencies WHERE currency = ?");         $stmt-&gt;bind_param("s", $bankcurrency);         $stmt-&gt;execute();         $result = $stmt-&gt;get_result();         if($result-&gt;num_rows &gt; 0) {             while($row = $result-&gt;fetch_assoc()) {                 echo $symbol = $row['symbol'];             }         }         $stmt-&gt;close();   The output of the symbol from these statements are � The output should have been $  You would think I have something wrong with my database input, but no, because if I try:  $stmt = $db-&gt;prepare("SELECT * FROM currencies WHERE currency = 'USD'");         //$stmt-&gt;bind_param("s", $bankcurrency);         $stmt-&gt;execute();         $result = $stmt-&gt;get_result();         if($result-&gt;num_rows &gt; 0) {             while($row = $result-&gt;fetch_assoc()) {                 echo $symbol = $row['symbol'];             }         }         $stmt-&gt;close();   This then outputs $ This makes no sense as the data and statements are exactly the same.  You don't need to declare strings or variables in PHP which is why it makes no sense to me?  My database structure is simply:  accounts database:  name: currency Type: TEXT Value: USD   currencies database:  name: symbol Type: TEXT Value: $   Of course I have other rows, but these are the affected ones  You could say my database is the problem, but since the second statement works fine out outputs $ that is clearly not the problem.  I can't understand what is wrong  EDIT: If I add in $bankcurrency = 'USD'; it also displays USD as you would expect, so there is a problem with my first statement
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.
Does it make sense to get a PhD if a person does not want to be in academia and prefers to stay in business? Given n distinct objects, there are $n!$ permutations of the objects and $n!/n$ "circular permutations" of the objects (orientation of the circle matters, but there is no starting point, so $1234$ and $2341$ are the same, but $4321$ is different).  Given $n$ objects of $k$ types (where the objects within each type are indistinguishable), $r_i$ of the $i^{th}$ type, there are   \begin{equation*} \frac{n!}{r_1!r_2!\cdots r_k!} \end{equation*}  permutations.  How many circular permutations are there of such a set? Alternating sum of binomial coefficients multiplied by (1/k+1) I'm trying to prove that  $$\sum_{k=0}^n {n \choose k} (-1)^k \frac{1}{k+1} = \frac{1}{n+1}$$  So far I've tried induction (which doesn't really work at all), using well known facts such as  $$\sum_{k=0}^n {n \choose k} (-1)^k = 0$$  and trying to apply identities like  $${n \choose k} = {n-1 \choose k-1} + {n-1 \choose k}$$  Would anyone be able to point me towards the right method? Should I be looking to apply an identity or is there a method I'm missing? Find all solutions to $x^9 \equiv 25 \pmod {29}$ scope of clause within complex sentence If I said, &quot;I will run, not if it is snowing, if I my shoes are comfortable.&quot; Does the &quot;if my shoes are comfortable&quot; modify the &quot;I will run&quot; clause? I agree the sentence would be clearer with the addition of &quot;and&quot; in place of the comma. However, without the &quot;and&quot; is it still clear that the &quot;if my shoes are comfortable&quot; clause modifies the &quot;I will run&quot; clause? Why does every server I try say it can't connect? I just re-purchased Minecraft (because my old profile stopped working so I bought it) after not playing it for a couple of months. I've added a bunch of servers, but almost every one says "can not connect."  I know its not because the server is not 1.7.2, because I checked that they'd update. It will say "server can't connect" after a long time. I don't know if its me or the servers.  My server screen looks like this (notice the one at the bottom – it's still loading!): Does equality of characteristic polynomials guarantee equivalence of matrices? I have a qualifying exam coming up in a couple days and I am just trying to understand some pathological examples I have in my notes. I will list a similar problem which I know the solution to and then the question.  True or False:   let $A,B \in \mathbb{Q}^{n \times n }$  Suppose $xI-A$ and $xI-B$ are equivalent then $\det(xI-A) = \det(xI-B)$.     I wrote in my notes this is true because any two matrices are equivalent in $\mathbb{Q[x]}^{n \times n}$ if and only if they have the same invariant factors.  Since the characteristic polynomial is a product of the invariant factors it follows that $\det(xI-A) = \det(xI-B)$.        True or False:   let $A,B \in \mathbb{Q}^{n \times n }$. If $\det(xI-A) = \det(xI-B)$ (in $\mathbb{Q}[x]$) then $xI-A$ and $xI-B$ are equivalent  in $\mathbb{Q}[x]^{n \times n}$   I think this is false because of the fact that equality of determinants is not strong enough to guarantee all invariant factors are equal but I do not have an example. What is the difference between [0-9]+ and [0-9]++? Partial Fraction Decomposition? Using $\epsilon-\delta$ to prove that a limit is not a specific number I want to use $\epsilon-\delta$ formulation to prove that $\lim_{x\to 1 } 2x+3 \neq 6$.  I know that I need to show that there exists an $\epsilon&gt;0$ such that for every $\delta&gt;0$ there exists $x\in \mathbb{R}$ such that $0&lt;\left| x-1 \right| &lt;\delta$ but $|2x-3|\geq \varepsilon$.  Will someone please guide me through the process?  Thanks a lot in advance Finding limit of a sequence in product form \begin{equation} \prod_{n=2}^{\infty} \left (1-\frac{2}{n(n+1)}  \right )^2 \end{equation}  I need to find limit for the following product..answer is $\frac{1}{9}$.  I have tried cancelling out but can't figure out.  Its a monotonically decreasing sequence so will converge to its infimum.. how to find the infimum? Can a person negotiate with banks on CD interest rates? I use a brick and mortar bank for some of my savings. I’d love to get a CD interest rate closer to what Ally or other online banks offer.   Are brick and mortar banks will to negotiate with customers on interest rates? For instance, if I went into a branch and said I’m moving my money to Ally unless the bank matches Ally’s rates, do I have any chance of getting them to? Subsurf Modifier artifacts So I was messing with Subsurf modifier to create a certain sword and then some weird artifacts began to appear (cape-like). I've tried adjusting the Crease, but couldn't achive what I wanted. Basicly, what I whant is the as on the screens, but wo any artifacts :)   Also, here's the .blend file, cause I assume I didn't make myselt 100% clear. I have a question that says "Show that there is a bounded sequence $x_n$ which is not convergent but has the property that $x_n - x_{n+1} \to 0$ as $n \to 0$.  What does this mean? Do I need to come up with an example or does the problem actually want me to prove such proposition?  By the way, I see that this sequence looks like Cauchy because of $x_n - x_{n+1} \to 0$ as $n \to 0$, but it is obviously not. Verb form of "must needs" Then touching the shoulder of a townsman who stood near to him, he addressed him in a formal and courteous manner:      "I pray you, good Sir," said he, "who is this woman? -- and wherefore is she here set up to public shame?"      "You must needs be a stranger in this region, friend," answered the townsman, looking curiously at the questioner and his savage companion, "else you would surely have heard of Mistress Hester Prynne and her evil doings. She hath raised a great scandal, I promise you, in godly Master Dimmesdale's church. "   As far as I know we always use first form of the verb after "must". For instance: "You must go". We never say "You must goes". Also, we never use -s/es with a verb that comes with "You". What are the circumstances in which writer has used "needs" after "You must" in "You must needs to be a stranger in this region."? Why can not upgrade texlive2016 to texlive2017 on windows I have texlive 2016 installed on my windows OS, to use texlive 2017 you need to download it (over then 2.5GO), I think this is a tedious operation every time you  want to pass from an old texlive to a recent one.  My question is is there a posibility just to upgrade texlive 2016 to texlive 2017without removing, downloading, and installinig  the entire texlive? Starting services in batch file on windows 7 Let $A$ be the $\mathbb{C}$-subalgebra of $M_4(\mathbb C)$ consisting of matrices of the form   \begin{pmatrix} * &amp; * &amp; * &amp; *\\ * &amp; * &amp; * &amp;*\\ 0 &amp; 0 &amp; *&amp;0 \\ 0 &amp; 0&amp;* &amp;* \end{pmatrix}   Then how would I find the Jacobson radical $J(A)$ of $A$?    I don't really understand finding the Jacobson radical of $\mathbb{C}$-subalgebras.  Any help on this would be greatly appreciated, thank you! Let $\theta$ be a root of $p(x)=x^3+9x+6$, find the inverse of $1+\theta$ in $\mathbb{Q(\theta)}$.  So problems like this really annoy me but I did crappy on the last homework after making a lot of arithmetic mistakes so I want to run everything by you guys. This one isn't actually for homework it's just a suggested practice problem but okay lets go!!!  So I'm not sure if the method I used to do this was standard or not, I don't remember my professor showing me, but what I did first was used the canonical euclidean algorithm in $\mathbb{Q[x]}$ and wrote:  $x^3+9x+6$  $=(1+x)(x^2-x+10-\frac{4}{x+1})$  $=(1+x)(x^2-x+10)-4$  the reduced modulo  the minimal polynomial of $\theta$ i.e. $x^3+9x+6$ and so  $4=(1+x)(x^2-x+10)$  $\rightarrow$  $1= \frac{1}{4}(1+x)(x^2-x+10)$ and sooo ah $(\theta^2-\theta+10)\frac{1}{4}$ is what I believe is the inverse of $(1+\theta)$ in the quotient field... Like i said I hate these problems but ehh is this correct? On a lighter note it's finally getting cool enough for me to go on proper runs here and so that's pretty bomb! Viruses at this period of time do not fit the current definition of life.   Much of the reasoning behind this is that we currently believe that all life must be made up of cells.  Also, many biologist/scientists say that viruses are not living because all they are is just chemicals carrying out their predefined chemistry.   Has anyone every considered the fact that cells, the supposed building blocks of life, themselves simply only carry out predefined chemical actions? All actions cells carry out are chemically driven, not consciously or spiritually driven. Cells do not make choices, they follow chemical directions present in their DNA and RNA. Viruses act very similarly, following the action transcribed in their DNA or RNA.   How can we really even draw a defined line of what life is?