Retrieving show information in Hebrew (1 Viewer)

Erez

Portal Pro
April 10, 2007
82
9
Home Country
Israel Israel
Hi,
I've added a hebrew description to some shows at http://tvdb.zsori.com,
but when TVSeries retrieves the info it appears as gibberish.
If I edit the show information manually through the plugin interface hebrew is displayed correctly.

Here's a link to one of the shows (Israeli shows):
http://tvdb.zsori.com/?tab=series&id=79974&lid=7

Is there a fix to this problem?

Thanks for this great plugin,
Any Help would be appreciated.
 

Inker

Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Well, two things:
    The show description in heberew is not reveivable since the interfaces always return english. This is being worked on.

    But more importantly, I receive information from the database in ISO-8859-1 which unfortunatly does not include hebrew characters. I think though that since they are saved correctly in the online database, this is just a configuration issue or maybe the xml just returns the wrong encoding information.

    I'll look into it, but it'll probably have to wait until multi-language version.
     

    Erez

    Portal Pro
    April 10, 2007
    82
    9
    Home Country
    Israel Israel
    Thanks for your quick reply.
    I've just noticed you're working on a multi-language version.
    It would be great to add hebrew support (I don't mind adding hebrew descriptions to the online database at http://tvdb.zsori.com), and it would make Israeli MP users very happy :).
    Looking forward for the new version...
    And thanks again.
     

    szsori

    Portal Member
    October 4, 2006
    48
    43
    Home Country
    United States of America United States of America
    They're just waiting on me to get the interfaces working properly on my end. I promise it will be done soon. :)
     

    szsori

    Portal Member
    October 4, 2006
    48
    43
    Home Country
    United States of America United States of America
    Interfaces are ready for the devs. Searching by the translated version of series/episodes isn't working yet, but the interfaces will return the translated data if the language parameter is passed. GetLanguages interface was also implemented.
     

    Erez

    Portal Pro
    April 10, 2007
    82
    9
    Home Country
    Israel Israel
    Hello,
    I've been trying the latest SVN and it is great so far :)
    I've noticed you've added language support.
    I don't know if this feature should be working OK, but I'm having problem with Hebrew language support. In most cases Hebrew characters are retrieved as gibberish, but in some cases the Hebrew information is retrieved correctly.

    Example: For the show 'Heroes' the description for the show is retrieved correctly in Hebrew, but episodes names are gibberish.
    For the shows 'Lost', 'My Name Is Earl', 'Scrubs' and more all the information is retrieved as gibberish.

    Again,
    Thanks for your work and patience,
    Erez
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Frankly don't know what to do about it. I'll need to look into xml parsing, and then it might be that the local database stores it as gibberish because it too might use some "wrong" encoding.

    Does this return correct characters for you?
     

    Erez

    Portal Pro
    April 10, 2007
    82
    9
    Home Country
    Israel Israel
    No it doesn't,
    In order for the XML to display Hebrew characters the encoding type should be 'windows-1255'. Sometimes 'UTF-8' works too...
    There is no need to do anything special, only to change the XML's header and you get Hebrew support (in most cases).

    I think the database saves the data OK because if I edit the database manually using the plugin interface, than Hebrew is displayed correctly.

    I also think its something to do with the parsing.
    Is there anything I could do to help?

    Thanks,
    Erez
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    No it doesn't,
    In order for the XML to display Hebrew characters the encoding type should be 'windows-1255'. Sometimes 'UTF-8' works too...
    There is no need to do anything special, only to change the XML's header and you get Hebrew support (in most cases).

    I think the database saves the data OK because if I edit the database manually using the plugin interface, than Hebrew is displayed correctly.

    I also think its something to do with the parsing.
    Is there anything I could do to help?

    Thanks,
    Erez

    Ok, I just forced the stream to be read in windows-1255 and even then its all gibberish. So I don't even think the xml header is the problem (which would be easy) because even forcing an encoding doesn't seem to have any effect. I have no experience with this kind of stuff, so I'm sorry if this is a stupid question, but doesn't the xml itself need to saved with the correct encoding? If so, could it be that the xml returned is simply bad and cannot be retrieved?

    I'm guessing all those &#1489 are character numbers in some encoding (probably that windows-1255) and when the xml is not specified to be unicode or windows-1255 it translates characters it can't represent into their number representation (this happens on the server). That's my theory anyways.

    The best thing to do would be to open a thread in thetvdb forums and ask the those guys.

    I'm glad the local db is handling it correctly though.
     

    Users who are viewing this thread

    Top Bottom