| Author |
Message |
|
|
Post subject: Javascript editor can't edit chinese character
Posted: Sep 27, 2004 - 06:47 AM
|
|

Joined: Sep 27, 2004
Posts: 7
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 27, 2004 - 02:59 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
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? |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 28, 2004 - 01:46 AM
|
|

Joined: Sep 27, 2004
Posts: 7
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 02, 2005 - 02:00 AM
|
|

Joined: Sep 02, 2005
Posts: 1
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: JS Edit
Posted: Oct 10, 2005 - 11:56 AM
|
|

Joined: Oct 10, 2005
Posts: 3
|
|
sorry, stuff.
delete this. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 10, 2005 - 12:03 PM
|
|
Moderator


Joined: Aug 21, 2004
Posts: 2518
|
|
As a followup: Encoding preferences are now available for the Javascript editor from ME 4.0.1 onwards.
Best,
Brian. |
_________________ Brian
MyEclipse Support
|
| |
|
|
|
 |
|
|