Closed GoogleCodeExporter closed 8 years ago
Are you actually able to enter cyrillic symbols in MediaPortal? I set my
windows text input to Russian keyboard and that works on the website you
mentioned. But when I try that in MediaPortal in the search box, I can for the
heck not enter any cyrillic symbol - all kinds of other latin letters and
number appear :(. Is that possible on your end?
Original comment by bborgsd...@gmail.com
on 31 Jul 2011 at 12:10
Hm. I have a "C:\Program Files\Team
MediaPortal\MediaPortal\plugins\Windows\Dialogs.dll" replaced with attached one
on my main MP PC, to put cyrillic symbols using a remote. But to be sure the
issue not caused by that 3rd-party file, checked that with stock Dialogs.dll
and yes, it is possible to use regular keyboard to enter some cyrillics in a
searchbox.
Original comment by maxbal...@gmail.com
on 31 Jul 2011 at 1:24
Attachments:
I have no chance to enter cyrillic text in MediaPortal :( How are you doing it?
Attached is a screenshot of what happens when I try (setting my text input to
Russian which works fine in notepad).
Original comment by bborgsd...@gmail.com
on 1 Aug 2011 at 12:22
Attachments:
Hello. Wow, you have even changed whole MP interface language! Appreciate your
efforts! Have you tried to replace Dialogs.dll I attached to my previous
comment?
By doing so and navigating then to "ACCENTS" button you should be able to
switch to virtual cyrillic keyboard instead of extra latin symbols. Does it
work?
Original comment by maxbal...@gmail.com
on 1 Aug 2011 at 12:40
What version of MP does that Dialogs.dll run with? I have 1.2 beta and SVN on
my dev PC, where it won't work :(
And using the original MP1.2 beta, selecting ACCENTS, I only get french style
letters ;)
Original comment by bborgsd...@gmail.com
on 1 Aug 2011 at 1:01
I'm currently using it with 1.1.3/WindowsXP. Took that file more than a year
ago from team-mediaportal.RU, so it is most likely non-official.
Also found original thread:
http://www.forum.team-mediaportal.ru/index.php/topic,445.0.html -
incompatibility with 1.2 was also stated there. pls try attached one for
1.2.0alpha, they also recommend there to replace C:\Program Files\Team
MediaPortal\MediaPortal\Core.dll when on 1.2.0alpha:
http://www.forum.team-mediaportal.ru/index.php/topic,445.msg15358.html#msg15358
- attached here as well.
Original comment by maxbal...@gmail.com
on 1 Aug 2011 at 1:31
Attachments:
Can you test attached dll? It should now URL escape those cyrillic letters
before trying to retrieve the data.
Original comment by bborgsd...@gmail.com
on 8 Aug 2011 at 3:17
Attachments:
Sorry, I do not see any difference:
both dlls - this one and installed with ver. 0.31 send URLs in the same
fashion, like:
[x]ttp://filmix.net/index.php?do=search&subaction=search&result_num=10&story=%D0
%BC%D0%B0%D0%BC%D0%B0
(UTF-8 -> URL-encoded)
when the server accepts Cyrillic input in (CP1251 -> URL-encoded), like:
[x]ttp://filmix.net/index.php?do=search&subaction=search&result_num=10&story=%EC
%E0%EC%E0
I put dll into C:\Program Files\Team
MediaPortal\MediaPortal\plugins\Windows\OnlineVideos - is that correct?
Original comment by maxbal...@gmail.com
on 8 Aug 2011 at 3:58
I see what you mean, but I cannot find a method in the .net framework to URL
encode my cyrillic string in c# to those escape sequences. I always get the
other ones that are twice as long. It must have something to do with unicode
encoding. I'll try to research further but let me know if you find a method
that can convert a c# string with cyrillic unicode letters to those codes.
Original comment by bborgsd...@gmail.com
on 8 Aug 2011 at 9:30
I found a way:
searchstring =
System.Web.HttpUtility.UrlEncode(System.Text.Encoding.GetEncoding("Cyrillic").Ge
tBytes(searchstring))
For this to work you will need to write your own siteutil (simply inherit from
GenericSiteUtil) and override the search function to convert the search string
as written above. Can you do that?
I'll check if I can maybe another parameter "encoding" to the GenericSite,
which is taken into account on all webrequests and search. That would fix your
other issue as well. All you'd need to do then would be to set the encoding to
"Cyrillic".
Original comment by bborgsd...@gmail.com
on 8 Aug 2011 at 9:43
Can you try this dll? In addition now you need to set overrideEncoding to
Cyrillic in the site's advanced configuration.
Original comment by bborgsd...@gmail.com
on 8 Aug 2011 at 10:50
Attachments:
Thanks for this great work. Now, search works just perfect, "overrideEncoding"
set to "Windows-1251".
But, small issue appears with this dll, even for sites without that
overrideEncoding settings - pls have a look at attached screenshot. The problem
NOT solid, and I cannot say what is pattern to make it appear so far.
Original comment by maxbal...@gmail.com
on 9 Aug 2011 at 10:15
Attachments:
What exactly IS the problem in that screenshot? If you mean that there are 11
pages of choices - they come from a regex that matched that often? It did not
before? I have made other changes lately about hosterurl resolving but I doubt
that would be the problem?
Original comment by bborgsd...@gmail.com
on 9 Aug 2011 at 11:31
Ahh, yes, forgot to clarify :-) The problem is encoding again. On the
screenshot above it looks like wrong UTF-CP1251 encoding we faced couple
comments earlier.
It should look like at attached pic. Number of choices is OK, as this is for
TV-series.
.
Still not clear for me, when exactly the problem appears: sometimes only for
sites with the "overrideEncoding" setting, but sometimes for any of them.
Sometimes, right from MP launch, sometimes later.
Original comment by maxbal...@gmail.com
on 9 Aug 2011 at 12:13
Attachments:
Just to make it clear... Subj. of issue seems to be resolved:
- cyrillic search for mentioned win-1251 websites now DOES return results,
- those results seem to be relevant to a keyword,
- search results (matches of videoListRegEx, right?) encoding is correct, no
issues.
"New" issue IS NOT related to any searching actions, it appears sometimes on
fileUrlRegEx results pop-up window as result of both searching or just
categories/videolist browsing.
Original comment by maxbal...@gmail.com
on 9 Aug 2011 at 12:20
This issue was closed by revision r1487.
Original comment by bborgsd...@gmail.com
on 9 Aug 2011 at 2:25
Original issue reported on code.google.com by
maxbal...@gmail.com
on 28 Jul 2011 at 1:58