This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Encoding Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Encoding Problem" Watch "Eclipse Encoding Problem" New topic
Author

Eclipse Encoding Problem

Ahmed Kotb
Ranch Hand

Joined: Apr 29, 2011
Posts: 35

Hi All

I am using STS (Springsource Tool Suite) ... i am facing a problem in Characters Encoding some of code appears as un identifeed characters like squars

you can see the attached file for more clearance ...

so any one can help please...


[Thumbnail for Screenshot1.png]

[Thumbnail for Screenshot2.png]



Ahmed Kotb
Software Developer
Ahmed Kotb
Ranch Hand

Joined: Apr 29, 2011
Posts: 35

is there any One Can Help Please???
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

PatienceIsAVirtue.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

you might have changed some settings in preferrences.

try to go to Window->Preferences. and the select (Springsource Tool) and then restore defaults at the editor present under that specific tool.

Or you can try to update your tool, using Eclipse update which is found in Help menu.

The problem is due to the tool which you installed in your Eclipse.

Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

Any chances this problem is due to Ubuntu ?


Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

From my experience i will can say that it may not be the issue, Eclipse works fine in almost all the OS, but i still think the tool you added to the eclipse may create the issue, the boxes appearing in the screen may be due to some unsupported or missing font types, and again i am not an expert in this, but still normally Eclipse will work just fine in any OS, the problem might be with the Springsource Tool Suite, try to search new updated version of the tools, or try posting the issue at the tool's homepage.

So did the issue get solved ?
Ahmed Kotb
Ranch Hand

Joined: Apr 29, 2011
Posts: 35

I tried restoring Default Settings but it is Still as it is...
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

i will try to install the same tool in my system and i will revert back to you on this issue
Ahmed Kotb
Ranch Hand

Joined: Apr 29, 2011
Posts: 35

Sachin Pachari wrote : i will try to install the same tool in my system and i will revert back to you on this issue


Thanks Alot Sachin Pachari
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

when you change the prespective are you able to see the text properly ? now in the screenshot is in Spring prespective. try changing it to Java EE prespective.
Ahmed Kotb
Ranch Hand

Joined: Apr 29, 2011
Posts: 35

sorry i am new to STS how can i change Perspective to Java EE prespective???
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

In the upper-right corner of STS there is a depressed button labelled Spring. Just to the right of it is an icon that looks like a grid with a plus sign - click that. A list of perspectives should be displayed, pick Java EE (you might have to click Other... to see the whole list).


JBoss In Action
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

try to change the prespective, if you need more information on that check the attachment.

you can select other and then select JavaEE or else you can directly select Java EE its all the same.


[Thumbnail for Screenshot2(1).png]

Ahmed Kotb
Ranch Hand

Joined: Apr 29, 2011
Posts: 35

I changed perspective as you said ...but Unfortunately the Problem still as it...
Sachin Pachari
Ranch Hand

Joined: Jan 16, 2012
Posts: 56

then try to "restore default" the following settings

Window->Preference->General->Editors.

If in case it doesnt work then,

Download a new Eclipse Indigo 3.7, and then you can install the SpringSource Tool in it,

Its very simple just get a fresh Eclipse( i tried it with Eclipse Indigo 3.7) and then just check out the below link, i think there might be a problem with your Eclipse, So try to get the new Eclipse and then open the link and you can install the SpringSource Suite.

http://marketplace.eclipse.org/node/106240

Ahmed Kotb
Ranch Hand

Joined: Apr 29, 2011
Posts: 35

Sachin wrote : then try to "restore default" the following settings

Window->Preference->General->Editors.

If in case it doesnt work then,

Download a new Eclipse Indigo 3.7, and then you can install the SpringSource Tool in it,

Its very simple just get a fresh Eclipse( i tried it with Eclipse Indigo 3.7) and then just check out the below link, i think there might be a problem with your Eclipse, So try to get the new Eclipse and then open the link and you can install the SpringSource Suite.

http://marketplace.eclipse.org/node/106240


I tried restoring default setting but still the problem ...

Also i tried new Version of Eclipse and Still the Problem in it ...

I don't know what to do ,,, but I think now the Problem in the OS not in the Eclipse...

So ...Thanks a lot Sachin for your Effort with me
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Eclipse Encoding Problem
 
Similar Threads
How to find encoding of byte[]
Retrieving japanese characters through jdbc
MultiLanguage - Char encoding in XML
problem with request.getParameter()
Reading unicode characters from a file