facebook

Javascript editor can’t edit chinese character

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #215997 Reply

    IceCraft
    Member

    I found out JavaScript Editor can not show chinese in MyEclipse EnterpriseWorkbenchInstaller_030801.exe
    For example, I input some chinese characters in JavaScript Editor, then save it.
    When I open the saved javascript file, all chinese characters become “?”.
    Why is it?
    MyEclipse EnterpriseWorkbenchInstaller_030800Beta2.exe have not this problem.
    I want to know, is the problem sovled in MyEclipse 3.8.2?
    Thank you very much.

    #216026

    Scott Anderson
    Participant

    IceCraft,

    I know we addressed encoding issues in the XML and JSP editors, but I don’t believe these affected the javascript editor. How are you specifying the text encoding for your javascript file?

    #216170

    IceCraft
    Member

    I have not specified the text encoding for my javascript file.
    Then, how to set the MyEclipse’s encoding for my problem?

    In eclipse, I create a javascript file, then input chinese characters, save and close it.
    When I open the file, the chinese characters become “?”.

    function test(){
    alert(“你好”);
    }

    become:
    function test(){
    alert(“??”);
    }

    Please help me, because I have to develop with chinese, but this problem effect my developing.
    Thank you very much.

    #236441

    gnat
    Member

    you can modify this config file for javascript editor:
    %MyEclipseHome%\eclipse\plugins\com.ibm.sse.model.javascript_13.8.3\plugin.xml
    default-charset=”ISO-8859-1″ =>default-charset=”GBK”
    and you can modify this config file for JSP editor:
    %MyEclipseHome%\eclipse\plugins\com.ibm.sse.model.jsp_13.9.210\plugin.xml
    default-charset=”ISO-8859-1″ => default-charset=”GBK”
    but this not work for JSP preview
    you must patch a jar package to correct it.

    #239064

    ixtraz
    Member

    sorry, stuff.
    delete this.

    #239066

    Brian Fernandes
    Moderator

    As a followup: Encoding preferences are now available for the Javascript editor from ME 4.0.1 onwards.

    Best,
    Brian.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Javascript editor can’t edit chinese character

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