Encoding in site url not working (1 Viewer)

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
Hello

Now I am trying to create WebEPG grabber files for Ukrainian TV channels.
I have found few sites where character encoding is not defined in HTML code. For such sites WebEPG use some default encoding seems like ASCII or ISO-8859-1. I was tryed to use
Code:
<Site url="" post="" external="" [B]encoding="windows-1251"[/B] />
but without any effect. Then I was checked the WebEPG sources and found no encoding handling at all.

I have enough knowledge to implement such handling, but sources structure is not too clean. Can someone point me where encoding handling have to be implemented?
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Hi AlexPlas,

    I found the problem and have updated the SVN, the forced encoding was not being copied with the HTTPRequest object.

    If you are still interested, the Encoding support is handled in HTMLPage.cs (MediaPortal.Utils.Web) in the Utils.dll.

    Cheers,

    /James
     

    Users who are viewing this thread

    Top Bottom