PHP working with text encoding
<p>I am working on the Facebook Public Search API.</p>

<p>As you may understand the results I get come for many different sides of the world.</p>

<p>What I have to do is to give to all the texts I get the same text encoding before putting it inside my MongoDB. I need to use UFT8 as a general and working encoding.</p>

<p>This is an example of what I may get from Facebook:</p>

<pre><code>10 à¸œà¸¹à¹‰à¸™à¸³à¸—à¸µà¹ˆà¹‚à¸¥à¸à¹„à¸¡à¹ˆà¸›à¸£à¸²à¸£à¸–à¸™à¸² à¸«à¸²à¸à¹„à¸¡à¹ˆà¸¡à¸µà¸œà¸¹à¹‰à¸™à¸³à¸›à¸£à¸°à¹€à¸ à¸—à¸™à¸µà¹‰à¹à¸¥à¹‰à¸§à¹‚à¸¥à¸à¹€à¸£à¸²à¸à¹‡à¸ˆà¸°à¸”à¸µà¸‚à¸¶à¹‰à¸™à¹€à¸¢à¸­à¸° à¹‚à¸”à¸¢à¹„à¸—à¸¢à¸•à¸´à¸”à¸­à¸±à¸™à¸”à¸±à¸š 1 à¸­à¹ˆà¸²à¸™à¸•à¹ˆà¸­à¹„à¸”à¹‰à¸—à¸µà¹ˆà¸™à¸µà¹ˆ
</code></pre>

<p>or</p>

<pre><code>Now he says heâ€™d side with Pakistan if there were a conflict with the U.S. Better than the Taliban for sure, but not by much. The poor people of Afghanistanâ€¦ Ayman al-Zawahiri: Al-Qaedaâ€™
</code></pre>

<p>or</p>

<pre><code>€™esercito tedesco, il primo modello di A400M Ã¨ in fase di collaudo, e ci resterÃ  per tre anni
</code></pre>

<p>Is there a function in PHP that can quickly convert the text into a UFT8 text encoding?</p>
