facebook

Changing file encoding of javascript files causes problems

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #267309 Reply

    optimad
    Participant

    I needed to add the Euro symbol to a Javascript (.js) file but Eclipse would not let me do this, when saving I got a dialog box which said “Save could not be completed” and explained that the character was not supported by the ISO-8859-1 character encoding.

    I then went to Window > Preferences and then to MyEclipse > Files & Editors > JavaScript and then in the Editing Files section I changed the encoding to UTF-16

    This allowed me to save the file I had edited and at this point I thought everything was fine.

    However, when I then tried to edit a different JavaScript file (which had obviously last been saved with the original character encoding) the file opened as a string of strange oriental-looking characters. When I then tried to close the file Eclipse froze and after half an hour of waiting for it to sort itself out with no success I had to terminate the application.

    Also, when a colleague of mine who had not changed his file encoding got the file I had saved with the Euro symbol in from CVS he experienced the same problem of strange looking characters followed by the application crashing.

    Please advise whether this is a bug and what we can do to work around it if anything.

    Thanks,
    James Packer

    Installation summary:

    *** Date:
    13 March 2007 10:50:08 o’clock GMT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_08

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    Eclipse Graphical Editing Framework

    Version: 3.2.1.v20060921
    Build id: 20060921-1617

    Eclipse Platform

    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060921-0945

    Eclipse RCP

    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060921-0945

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945

    Eclipse Project SDK

    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    230_54
    -vm
    C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\javaw.exe

    #267340 Reply

    Riyad Kalla
    Member

    James,
    This sounds like something I would like to test right away. Can you send me a simple project with a JS file in it with this strange character so I can test the issue?

    support@genuitec.com ATTN Riyad, with a link to this thread for reference please.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Changing file encoding of javascript files causes problems

You must be logged in to post in the forum log in