Closed (fixed)
Project:
Facebook-style Micropublisher
Version:
6.x-1.x-dev
Component:
Link plugin
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2010 at 19:42 UTC
Updated:
3 Jan 2011 at 11:40 UTC
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
Comment #1
publicmind commentedThere 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 usingmb_detect_encodingand 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,
Comment #2
roylazarovich commentedThank 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
Comment #3
publicmind commentedI have already committed a solution which will be available when the packaging script runs next (in about 12 hours).
Regards,
Comment #4
roylazarovich commentedThank you very much publicmind
Comment #5
roylazarovich commentedThank you publicmind, the Hebrew problem seems to have been fixed, tested with 3 videos with no problems