Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
charset + strings again
This thread has 2 replies. Displaying all posts.
Post 1 made on Tuesday January 8, 2008 at 15:53
frankbe
Long Time Member
Joined:
Posts:
December 2007
10
Here's a strange effect:

dvdobj is an array of objects with properties for my dvd-changer.
in the function showinfo the output of special chars üäö in der var [].text on the panel are correct. The output of characters in the var [].name are wrong looks like "3 Engel f a a a a a 1/4" on the panel.
The output of same var [].name assigned to a button is again correct.

I don't see the difference, especially on the panel: same vars, same function but
different output.


dvdobj[2] = {num: 2, Jahr: 2000, Dauer:94 ,genre:"Action,Komödie",name:"3 Engel für Charlie",text:"Ihr Auftrag: Einen entführten Milliardär befreien und dessen Firma Knox Technologies vor dem sicheren Ruin bewahren. Unter der Leitung ihres charismatischen Playboy-Bosses, berühmt-berüchtigt dafür, sich selbst seinen engsten Mitarbeitern nie persönlich zu zeigen, greifen die drei Engel auf ihren weiblichen Charme sowie eine gehörige Portion Hightech");

function showinfo()
{
widget("infopanel").label=dvdobj[dvdpos].name +"\n"; // äöü output wong
widget("infopanel").label=widget("infopanel").label+"DVD-Slot: " + dvdobj[dvdpos].num+ " Spieldauer: " + dvdobj[dvdpos].Dauer + " min \n";
widget("infopanel").label=widget("infopanel").label+"Genre: " + dvdobj[dvdpos].genre+"\n";
widget("infopanel").label=widget("infopanel").label+dvdobj[dvdpos].text; // äöü output correct
}

if I add the name var in the last line, output is correct:

widget("infopanel").label=widget("infopanel").label+dvdobj[dvdpos].name+dvdobj[dvdpos].text;

but
even when i try to assign the value of my list-button (which shows correct "3 Engel für Charlie) in the first line:
widget("infopanel").label=widget("list_"+listpos).label+"\n";

output on the panel is wrong
Post 2 made on Tuesday January 8, 2008 at 17:23
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,157
This is a bug in the pronto handling of text between UCF-8 and UCF-16. The pronto team is aware of it as I documented the exact case you are stumbling over and sent them the xcf. They acknowledged the problem but have set no resolution date.

I find it ironic that the Philips company, a strong EU company, has it correct for us English speaking Americans (we use UCF-8, in fact we use ASCII and a few characters in the 128-255 range such as the copyright mark and the registered mark) which you will come across in DVD overviews and writeups. Also there is an apostrophe that often shows up above char code 127.

I just do an extra scan looking for chars above 127 since a string array element is always in UCF-8 (ASCII) and do some changes (at lest the apostrophe!) which appears in some DVD titles.
OP | Post 3 made on Wednesday January 9, 2008 at 15:54
frankbe
Long Time Member
Joined:
Posts:
December 2007
10
Barry,
thanks for the answer - I hoped that there's a way to avoid this bug because
the long description is shown in the right way. Maybe there are some chars that force the right conversion or may it's the length of string - I don' know. I've tried a lot of
different commands, but I could not discover in which case it's right or wrong.

So, let's wait and see whats in the next firmware version.

About Philips company - Maybe they don't want to sell to Europe or Germany - I've bought my 9400 from a dealer in New York and paid including shipping,tax and custom only about 400 Euro. In Germany it is sold for about 900 Euro. Even 400 Euro is lot of money for a Remote Control, but I guess they don't sell many for 900 Euro (rd. 1300$).

Frank


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse