Black Diamond questions - Youtube API - J r my

when I try to send the following to the Youtube description via the API - for example: Jérémy - I get J r my in the youtube description. Oddly enough, "–" also appears as " " .

Publishing using the PHP Zend API:

 $myVideoEntry->setVideoDescription('Jérémy'); 

I'm not sure if I can set the encoding? When I change the description manually, it works great.

ANSWER - Changed page properties in Dreamweaver to UTF8 and resolved the issue. Thank you all

+8
api php youtube youtube-api zend-framework
source share
2 answers

Which editor do you use when writing your code? I once discovered this problem by finding that in Notepad ++, ANSI was installed to encode the page, not UTF8 as needed.

It can also be a duplicate: it does not display correctly . Check out the answer from GmonC on this post .

+3
source share

Not 100% sure, but as you send the string, this may mean that you will need to use the ascii code for the "special" characters, as they will be evaluated as if they were rendered by the browser.

For example, for é you can use:

 $myVideoEntry->setVideoDescription('Jérémy'); 

and for the dash you could use: '& # 45';

+1
source share

All Articles