Hello

I am using this great module to enable embedding YouTube videos in a status, however, the website is in Hebrew and most of the embedded YouTube videos have Hebrew title and description which appear as gibberish

You can see the outcome here:
http://www.shirisraeli.co.il/

How can I enable Hebrew support for the YouTube title and description?

Thanks

Comments

publicmind’s picture

Category: bug » support
Status: Active » Fixed

There is really not an easy way to detect the character set of the webpage if one is not present in the header using <meta charset="utf-8">. I have made an attempt to detect the encoding using mb_detect_encoding and parsing the HTML after inserting the meta tag if not already present.

In short, it will work in most cases but you can not be sure of when it will fail.

Regards,

roylazarovich’s picture

Status: Fixed » Needs review

Thank you very much for the reply.

I might have a solution:
Looking at this page which is for a video with Hebrew title and description: gdata.youtube.com/feeds/api/videos/iFZzVq1XTv4
I can see that the encoding is specified as UTF-8 and the Hebrew characters are readable

I'm not sure if this information is usable to Facebook: Micropublisher or if its something on Media: YouTube's end

publicmind’s picture

Status: Needs review » Fixed

I have already committed a solution which will be available when the packaging script runs next (in about 12 hours).

Regards,

roylazarovich’s picture

Thank you very much publicmind

roylazarovich’s picture

Thank you publicmind, the Hebrew problem seems to have been fixed, tested with 3 videos with no problems

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.