Unicode channel names in a char buffer

Module API help / support section for programmers.

Moderators: Dreamer, FredB, X05

fredx21
Not too shy to talk
Posts: 18
Joined: Wed Feb 20, 2008 10:22 am

Unicode channel names in a char buffer

Postby fredx21 » Thu Jun 04, 2009 6:09 am

Hi rel,

in the TChlChannel, the strings are of type char:

Code: Select all

char ChName[MAX_STR_SIZE];
char Provider[MAX_STR_SIZE];
char ActualChName[MAX_STR_SIZE];
However, inside DD, the strings are unicode. This is clearly visible in the channel list since it displays unicode characters.

The hex bytes in the TChlChannel's strings seems to be the real unicode string.

Is there a way to tell whether the strings inside the TChlChannel's byte buffers (ChName, Provider and ActualChName) are unicode or not?

Fred

Skywalker-1, Skywalker-2, W7.
DVBLink for DVBDream author.
fredx21
Not too shy to talk
Posts: 18
Joined: Wed Feb 20, 2008 10:22 am

Postby fredx21 » Thu Jun 04, 2009 7:52 am

It's ok, I will use codepage.

Fred
Skywalker-1, Skywalker-2, W7.
DVBLink for DVBDream author.
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Mon Jun 08, 2009 11:37 pm

yea, based on default code page,
they are not unicode. Each character takes one byte.
DVB Dream - because I have to dream about having time to code it

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: No registered users and 1 guest