PHP Parsing of XML (RSS) in different Languages (Arabic, Russian, etc.)

Discussion in 'PHP' started by flagday, Jan 6, 2008.

  1. #1
    Hi all,

    I'm looking for a way to parse a UTF-8 encoded RSS feed using PhP that will work along different character sets and languages.

    I have a cURL parser that works for English, Japanese and Chinese, but it's not working for Russian, Korean, or Arabic, it only shows ??? for characters.

    Have a look:
    Simplified Chinese (works):
    xn--1tq374c79r.biz

    Japanese (works):
    xn--3ckxd6aza9447ccy3c.com

    Arabic (does not work):
    http://xn--mgbgvp7e0ao.net/

    Korean (does not work):
    xn--oj4bn6kltl.com

    Note that the pages are UTF-8 encoded and the correct language is in the HTML Meta Tags (as they are in MySQL). They're even parsing the right feeds, and the links even work.

    Now, how do I get the text to display properly on all my sites in all languages?

    I suspect it's my php parser, and I'll post it if you need it.

    TIA
     
    flagday, Jan 6, 2008 IP
  2. flagday

    flagday Peon

    Messages:
    348
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just wanted to note that I'm using the same PHP parser for all of these, and it's only working in English, Chinese (Simplified), and Japanese.

    Here's the Russian:

    http://xn--e1aapgcbl6d.com/

    FYI, the xn-- is just a designator that this is punycode, so the domain names are actually in native script.

    Thanks,
    Flag
     
    flagday, Jan 6, 2008 IP
  3. Javof

    Javof Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Presently on search for for Russian...
    Щас поищу для Русского...
     
    Javof, Jan 6, 2008 IP
  4. Javof

    Javof Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Nor what nor has found.
    Here(softobzor.ru/download_6077/Simplest_E_mailer_.html), there is part.
     
    Javof, Jan 6, 2008 IP