DVBViewer community forum: Non Ansi chars in EPG & Channelnames - DVBViewer community forum

Jump to content

-

Please read careful

This Forum is to be used ONLY for reports about the BETA version of the DVB Viewer.

Every posting not belonging here WILL BE DELETED without warning.

Before you post please follow this checklist:

  • Is it a real problem or a matter of personal taste? If the later don't bother posting.
  • Is the problem I found reproduceable? If not, don't bother posting till you can reproduce it.
  • Do I have all steps to reproduce the problem, so the developers can follow them without any guessing?
  • Do I have all necessary data about my system (-> SupportTool.zip). ADD THE ZIP FILE CREATED BY THE TOOL!
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Non Ansi chars in EPG & Channelnames Please test

#16 User is offline   Delphi 

  • DVBViewer Junkie
  • PipPipPipPip
  • Group: Senior Members
  • Posts: 370
  • Joined: 31.March 06

Posted 15 July 2009 - 12:42

Is the COM interface supposed to support unicode?

Since you want feedback on unicode now, I have done a bit of testing. I did:

Use the DVBViewer Pro 4.2.0.21 beta.
Download a chinese channels.dat from a thread in this forum
Install the eastern character sets and set "language for non-unicode-programs" to Chinese (there other variants af chinese possible, haven't tested those ones) on my Danish Windows XP Pro.


Here is my code for reading and testing the DVBViewer channels in D2009:

procedure TAbstractThread.GetDVBVChannels;
var
  pChannelCollection: IChannelCollection;
  pFavoritesManager: IFavoritesManager;
  List: OleVariant;
  i, N: integer;
  p: PDVBVChannel;
  trEPGChannelID: TEPGChannelID;

  function NewChannel(aEPGChannelID: TEPGChannelID): boolean;
  var
	i: integer;
	p: PDVBVChannel;
  begin
	Result := True;
	for I := 0 to DVBVChannels.Count - 1 do
	begin
	  p := DVBVChannels[i];
	  if (p^.rEPGChannelID.ID = aEPGChannelID.ID) then
	  begin
		Result := False;
		Exit;
	  end;
	end;
  end;

  begin  //GetDVBVChannels
  try
	pChannelCollection := FDVBViewer.ChannelManager;
	pFavoritesManager := FDVBViewer.FavoritesManager;
	N := pChannelCollection.GetChannelList(List);
	GLOG('Reading ' + IntToStr(N) + ' DVBViewer Channels');
	for i := 0  to N - 1 do
	begin
	  trEPGChannelID.SID := List[i,26];
	  trEPGChannelID.TID := List[i,23];
	  trEPGChannelID.NID := List[i,25];
	  trEPGChannelID.TunerType := List[i,4] + 1;
	  trEPGChannelID.Unused := 0;
	  if NewChannel(trEPGChannelID) and
	   ((List[i,22] <> 0) or (List[i,20] <> 0)) then //Vidio or Audio PID <> 0
	  begin
		New(p);
		if not Assigned(p) then
		begin
		  ThreadError := errMemGet;
		  raise XepgException.Create('ERROR: Out of memory');
		end;
		DVBVChannels.Add(p);
		with p^ do
		begin
		  rEPGChannelID := trEPGChannelID;
		  Root := List[i,0];
		  IsRadio := List[i,22] = 0; //Video PID
		  Category := List[i,2];
		  Name := List[i,1];
		  AddLineToMemo(List[i,1]);//<---Added to test chinese channels.dat. This line is not included in the public version
		  IsEncrypted := List[i,3] And 1 <> 0;
		  IsFavorite := pFavoritesManager.IsFavorite(rEPGChannelID.SID, List[i,20], List[i,1]);
		  ChannelNo := i;
		end;  // with p^
	  end;
	  if Terminated Then Exit;
	end; //for i
  except
	if ThreadError = 0 then ThreadError := errReadingChannels;
	raise;
  end;
  GLOG('Different DVBViewer Channels found :' + IntToStr(DVBVChannels.Count));
end;


The channel names displayed in the TMemo are garbage unless for ansi characters.I did try to set the language in DVBViewer to both versions of chinese.

Am I doing anything wrong?

Actually the p^.Name variable is currently of type string[63] so the Xepg is NOT fully unicode enabled. Ofcourse I plan it to be. I have some other stuff I want to do, but if you want me to I can make this unicode thing priority 1. Well, even for a small tool like the Xepg this actually requires quite some recoding.
A solution not urgent to me.

This post has been edited by Delphi: 15 July 2009 - 12:45


#17 User is offline   Lars_MQ 

  • Administrator
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Forum Admins
  • Posts: 25,470
  • Joined: 15.April 04

Posted 15 July 2009 - 12:55

No it doesn't work for now. We're still in the testing stage. But if everything is coming together, the COM interface will deliver correct Unicode for EPG and channelnames and timers and filenames and and and...
I expect several tools will break for non Ansi (well at least my tools are mostly not ready to handle real unicode), but for ANSI users there should be no difference...

#18 User is offline   Delphi 

  • DVBViewer Junkie
  • PipPipPipPip
  • Group: Senior Members
  • Posts: 370
  • Joined: 31.March 06

Posted 15 July 2009 - 13:09

View PostLars_MQ, on Jul 15 2009, 13:55, said:

But if everything is coming together, the COM interface will deliver correct Unicode for EPG and channelnames and timers and filenames and and and...


This is great and exiting news. I will stick to my old plan then...I Think.

#19 User is offline   scanya 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 25.May 08

Posted 08 August 2009 - 10:41

I'm using Dvbviewer to watch polish terrestrial DVB-T channels.
EPG works almost OK - Dvbviewer shows incorrectly some polish national chars.

These chars are OK:
ć ę ł ń ó ż Ć Ę Ł Ń Ó Ż

But these are showing incorrectly:
ą => ±
ś => ¶
ź => Ľ
Ą => ˇ
Ś => ¦
Ź => ¬

I checked this and problem is wrong chars coding.
Dvbviewer uses east europe windows (Windows-1250) coding for EPG, but correct coding is east europe iso (ISO 8859-2).

I create simple html file:
http://scanya.republ...lish_dvb-t.html

If I open it in web browser (I use IE7) and I set "coding / east europe (windows)" - some chars are wrong.
But if I set "coding / east europe (iso)" - everything is OK :)

Can you correct this problem ?

#20 User is offline   Lars_MQ 

  • Administrator
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Forum Admins
  • Posts: 25,470
  • Joined: 15.April 04

Posted 08 August 2009 - 10:46

Can you read what this thread is about??

#21 User is offline   scanya 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 25.May 08

Posted 08 August 2009 - 11:18

Yes. Polish chars are not ANSI (I think).

I have this problem in all beta and stable version which I tested.

If I wrote this in wrong place - sorry. I will write this in new topic in Bug Reports.

This post has been edited by scanya: 08 August 2009 - 11:30


#22 User is offline   dawust 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 10.May 08

Posted 15 September 2009 - 00:29

Hi!

I still have some problems with the japanese packages on JCSAT 3A/4A!
The charset is probably S-JIS

I hope you can help me somehow!
Thanks,
Daniel

Attached File(s)

  • Attached File  jcsat.PNG (60.06K)
    Number of downloads: 61
  • Attached File  jcsat.rar (144.38K)
    Number of downloads: 10


#23 User is offline   Irmantas 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 06.August 09

Posted 18 September 2009 - 14:14

hi. soory for my dumm question. Can you explqain what i need to do to see in dvbviewer 4.2 cyrillica in 9e eurobird (platforma DV). I see in TransEditML all ok but in dvbviewer not. what i must do to see in dvbviewer epg and channel name ok (in cyrillica)?

#24 User is offline   Lars_MQ 

  • Administrator
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Forum Admins
  • Posts: 25,470
  • Joined: 15.April 04

Posted 18 September 2009 - 15:37

Wait for the next version. :wacko:

#25 User is offline   ToTheNirvana 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 10.February 11

Posted 11 February 2011 - 00:05

Hi!

I just tried the actual DVBViewer and EPG is unreadable in Hugarian. I used DVBViewer TE2 up till now and it was OK.

Here is what I see and what I should see:

tijrtŘnt
történt

IdıjĆrĆs
Időjárás

Mßsorszţnet
Műsorszünet

Also in image:
Posted Image

Thanks, ToTheNirvana

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users