Get websites title and description, save to utf8 table, php/mysql
<p>I've been trying today all day to figure this out and I have no idea.</p>

<p>What I want:
Get the title and meta description of any kind of website.</p>

<p>Save this info to utf table in mysql.</p>

<p>What the problem is?
Different sites have different charsets which results in that some have chinese, some contain umlauts (german), then we have russian and so on..</p>

<p>I've tried preg_match which works for some while not for others, i've tried DOMdocument which is the same as preg_match.</p>

<p>Is there any class available that will do this?</p>

<p>Hope someone can help, thanks.</p>
