js file not Big Endian

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



Answer this question

js file not Big Endian

  • Ready4u

    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.


  • ChesyterWest

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



  • slippyC

    Bad Analog wrote:
    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.


  • Victor BA

    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.


  • Denvas

    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.




  • LenaS

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

  • js file not Big Endian