js file not Big Endian  
Author Message
Will Merydith





PostPosted: HD DVD Interactivity Authoring, js file not Big Endian Top

I wrote some javascript to test out in the iHD simulator. When I try to play the content I get the error:

"Script is not Big Endian"

I haven't heard a reference to big endian storage since my mainframe days. Do I need to convert my javascript to big endian And if so how do I do that on an XP box



Audio and Video Development2  
 
 
wmerydith





PostPosted: HD DVD Interactivity Authoring, js file not Big Endian Top

It looks like Eclipse uses little endian, whereas textpad uses big endian (I think). Or at least I can write all my js in textpad and that works.

Weird.


 
 
Bad Analog





PostPosted: HD DVD Interactivity Authoring, js file not Big Endian Top

Per the HD DVD spec, all JavaScript files must be UTF-16, Big Endian (with BOM). XML files can be UTF-8 or UTF-16 and should include which encoding they're using in the XML header.




 
 
Andy Pennell MSFT





PostPosted: HD DVD Interactivity Authoring, js file not Big Endian Top

We use Notepad on XP to convert the files. File / Save As / Encoding



 
 
Peter Torr - MSFT





PostPosted: HD DVD Interactivity Authoring, js file not Big Endian Top

Visual Studio will also do it when you Save As... and choose the drop-down arrow in the dialog to "Save with encoding..."

 
 
Qiming Lu





PostPosted: HD DVD Interactivity Authoring, js file not Big Endian Top

Per the HD DVD spec, all JavaScript files must be UTF-16, Big Endian (with BOM). XML files can be UTF-8 or UTF-16 and should include which encoding they're using in the XML header.

Right. I usually use Notepad to convert one encoding format to others.


 
 
numberonesuperguy





PostPosted: HD DVD Interactivity Authoring, js file not Big Endian Top

I've found Eclipse had 3 settings, 'UTF-16BE', 'UTF-16LE', and just 'UTF-16'.

For me, UTF-16BE didn't work, but setting it to just UTF-16 gave it the BOM it needed and worked fine.