facebook

Eleminating special characters after saving javascript file

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

    When i save a js file. All special characters are eliminated.

    Example:

    I wrote the folowing java script function:

    function checkdfield(source) {
    if (checkDate(source)) {
    return true;
    } else {

    alert(“La date entrée n’est pas valide. Format accepté : jj/mm/aaaa”);
    source.value = “”;
    }
    }

    After saving the file and reloading it, i am getting this result:

    function checkdfield(source) {
    if (checkDate(source)) {
    return true;
    } else {

    alert(“La date entr?e n’est pas valide. Format accept? : jj/mm/aaaa”);
    source.value = “”;
    }
    }

    #248286 Reply

    Riyad Kalla
    Member

    Default encoding for JavaScript editor is US-ASCII, you can navigate to Window > Prefs > MyEclipse > Editors > JavaScript and change the encoding to something else.

    #258966 Reply

    starik
    Member

    this problem persists for other file types as well.

    also, i don’t have JS editor plugin installed, so there is no menu setting in the preferences to change the encoding!

    this is a terrible “feature”! Even poor man’s editors like Windows Notepad or KDE’s Kate will warn you about character-set conversions!

    #258969 Reply

    Riyad Kalla
    Member

    I don’t understand the comment “I don’t have JS editor plugin installed”, if you have MyEclipse installed, it’s part of MyEclipse. Do you have a “MyEclipse” preference panel under Window > Preferences?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Eleminating special characters after saving javascript file

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