Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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_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,
Comment #2
roylazarovich CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: roylazarovich commentedThank you very much publicmind
Comment #5
roylazarovich CreditAttribution: roylazarovich commentedThank you publicmind, the Hebrew problem seems to have been fixed, tested with 3 videos with no problems