MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
IceCraft
Post subject: Javascript editor can't edit chinese character  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Sep 27, 2004 - 02:59 PM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
IceCraft
Post subject:   PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
gnat
Post subject:   PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
ixtraz
Post subject: JS Edit  PostPosted: Oct 10, 2005 - 11:56 AM



Joined: Oct 10, 2005
Posts: 3

sorry, stuff.
delete this.
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Oct 10, 2005 - 12:03 PM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits