Ok so I have a string called $title that includes characters of titles of movies in all languages (English, Russian, Japanese) etc etc...
And my script is erroring out like crazy always being unable to encode and save to MySQL database the title.
So help me out, how do I encode (unicode or something) so it works for all languages and character sets. Right now my code is:
title = result.group(1).strip().replace("'", "")[0:40]+'...'
title = unicode(title, "utf-8")