Prev Previous Post   Next Post Next
  #1  
Old 8th September 2009, 03:05
kentor kentor is offline
Member
 
Join Date: Apr 2009
Posts: 32
Default channel api and utf 8

So I'm trying to load the channel XML file with php using
Code:
<?php
$doc = new DOMDocument();
$xml = "http://channel.api.livestream.com/1.0/info?channel=oystein123"
$doc->load($xml);
?>
And I get the error:
Code:
Warning: DOMDocument::load() [domdocument.load]: Input is not proper UTF-8, indicate encoding ! Bytes: 0xD8 0x79 0x73 0x74 in http://channel.api.livestream.com/1.0/info?channel=oystein123
i noticed this happens to any channel whose title has some special character in it.
is there a fix to this?

Last edited by kentor; 8th September 2009 at 03:08.
Reply With Quote
 

Tags
api, channel, encoding, error, utf-8

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump