Nordic characters in for example Yle Areena subtitles.

Discussion in 'OnlineVideos' started by te3hpurp, May 1, 2013.

  1. te3hpurp
    • Team MediaPortal

    te3hpurp Retired Team Member

    Joined:
    September 23, 2008
    Messages:
    902
    Likes Received:
    181
    Gender:
    Male
    Occupation:
    Senior Software Architect
    Location:
    Rovaniemi
    Ratings:
    +228 / 0
    Home Country:
    Finland Finland
    Show System Specs
    Hi.

    I had Ä ä ö Ö showing like ä etc...

    I changed line 2452 in GuiOnlineVideos.cs, ie.

    Code (Text):
    1.  string subs = string.IsNullOrEmpty(playItem.Video.SubtitleText) ? Sites.SiteUtilBase.GetWebData(playItem.Video.SubtitleUrl) : playItem.Video.SubtitleText;
    to
    Code (Text):
    1. string subs = string.IsNullOrEmpty(playItem.Video.SubtitleText) ? Sites.SiteUtilBase.GetWebData(playItem.Video.SubtitleUrl, null, null, null, true, false, null, null) : playItem.Video.SubtitleText;
    meaning forcing utf-8.

    Now characters are presented Okay.



    Br,
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    Hm we can't use this as a generic fix, because it forces all downloaded subtitles to utf-8, which might be wrong. We have to options to set subs on a video, once as url and once as the actual text - using the later would give the chance to use a custom encoding.
    Calling @doskabouter :)
     
  4. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,755
    Likes Received:
    710
    Location:
    Nuenen
    Ratings:
    +1,058 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Strange, I thought Yle areena was down, can you verify please?
    If it's working, I can transform the text to utf-8 in the util
     
  5. te3hpurp
    • Team MediaPortal

    te3hpurp Retired Team Member

    Joined:
    September 23, 2008
    Messages:
    902
    Likes Received:
    181
    Gender:
    Male
    Occupation:
    Senior Software Architect
    Location:
    Rovaniemi
    Ratings:
    +228 / 0
    Home Country:
    Finland Finland
    Show System Specs
    :) Yes it working fine. I use it daily.
     
  6. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,755
    Likes Received:
    710
    Location:
    Nuenen
    Ratings:
    +1,058 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Great!

    I've fixed the subtitle issue. I can't test it here due to geo-restrictions. Can you check if it's working ok?
     
    • Like Like x 1
  7. te3hpurp
    • Team MediaPortal

    te3hpurp Retired Team Member

    Joined:
    September 23, 2008
    Messages:
    902
    Likes Received:
    181
    Gender:
    Male
    Occupation:
    Senior Software Architect
    Location:
    Rovaniemi
    Ratings:
    +228 / 0
    Home Country:
    Finland Finland
    Show System Specs
    Yes. Sure,Thanks.

    I'm going to weekend trip, but, i'll test it when I get back in Monday

    Br,
     
  8. te3hpurp
    • Team MediaPortal

    te3hpurp Retired Team Member

    Joined:
    September 23, 2008
    Messages:
    902
    Likes Received:
    181
    Gender:
    Male
    Occupation:
    Senior Software Architect
    Location:
    Rovaniemi
    Ratings:
    +228 / 0
    Home Country:
    Finland Finland
    Show System Specs
    Hi.

    I reverted my changes, and fetched all updates, and compiled
    new dll's, but Mp says that Onlinevideos is not compatible with this version of
    MediaPortal. Is assemblyinfo.cs that I should change for correct version number
    or, where?
     
  9. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    You'll need revision 2835 of that file if you want it to work with MP 1.3
     
    • Like Like x 1
  10. te3hpurp
    • Team MediaPortal

    te3hpurp Retired Team Member

    Joined:
    September 23, 2008
    Messages:
    902
    Likes Received:
    181
    Gender:
    Male
    Occupation:
    Senior Software Architect
    Location:
    Rovaniemi
    Ratings:
    +228 / 0
    Home Country:
    Finland Finland
    Show System Specs
    Okay, I was trying to test doskabouter fix for yle subtitles. Are they in 2835 rev, or how to build compatible version....
     
  11. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!