sulotion to import rss use different charset from your site?

Discussion in 'XML & RSS' started by 3walim, Aug 8, 2007.

  1. #1
    hello
    I have vbulletin forum and I use rss of it to import news from some site
    but I have problem cuz some site use different charset from my site

    any one plz can help me on this?

    thanks in advance
     
    3walim, Aug 8, 2007 IP
  2. bibel

    bibel Active Member

    Messages:
    289
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    You have to do a charset conversion. You can use the mbstring extension in php
     
    bibel, Aug 13, 2007 IP
  3. 3walim

    3walim Peon

    Messages:
    282
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I can convert charset but still and the same problem with aother news site which use different charset
    I would if someone can tell me what google news depende on to solve this problem

    thanks
     
    3walim, Aug 20, 2007 IP
  4. Tarry

    Tarry Peon

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Before the conversion, you must determine the encoding preference of Rss flow. But then convert it, such as :
    
    // $rsscp is charset of RSS flow
    // $rss is a string variable, with the rss <item>
    $converted = iconv ("UTF-8", $rsscp, $rss);
    PHP:
    If i get you right...
     
    Tarry, Aug 20, 2007 IP