Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with encoding

Former Member
0 Likes
1,081

Hello everyone,

I'm an ABAP developer since 2008 and recently I decided to learn ABAP on eclipse.

I was able to do the installation and to start developing but I've been struggling with the fact that i'm portuguese and I've made my code comments in my native tongue, that have a lot of characters like á, â, ã. For example the word "férias". Now when I open this code in eclipse all of these characters are "destroyed", in the example "f�rias".

So, when I click save it gives me an exception, ExceptionResourceCharacterSetNotAcceptable.

I've tried changing the encoding in some places but with no success.

Is there any other way to solve this problem?

Kind regards,

Fábio Galvão

5 REPLIES 5
Read only

thomasalexander_ritter
Product and Topic Expert
Product and Topic Expert
0 Likes
1,010

Hi Fábio,

the exception can happen for multiple reasons. As a first step please check if your JVM is running with UTF-8 as the default charset. The note 1810699 describes how to start Eclipse using this default.

http://service.sap.com/sap/support/notes/1810699

Have a look at step 1.

cheers

Thomas

Read only

0 Likes
1,010

Hi Thomas,

I've tried this but with no luck, it's still throwing the exception.

One question, shouldn't the encoding be UTF-16BE?

Thanks,

Fábio

Read only

0 Likes
1,010

Hi Fábio,

the ABAP in Eclipse architecture uses UTF-8 on the client and on the server side.

In order to better understand the problem I would like to have a look at your system. Can you please open an OSS message, thanks.

cheers

Thomas

Read only

0 Likes
1,010

Hi Thomas,

I only found out now that the my client's ERP is still a non Unicode system.

So i'm guessing that might be the cause of the problem, right?

Thanks,

Fábio

Read only

daniel_ruiz2
Active Contributor
0 Likes
1,010

Hi Fabio,

I'm assuming your ABAP system does accept ISO-8859-1 characters - but as soon you download the source into Eclipse, the workspace is using a different character set, reason why it cannot render such character.

Can you try:

- Top Menu, Window, Preferences

- Expand 'General' and select 'Workspace'

- Text File Enconding, select 'Other' and 'ISO-8859-1'

Restart Eclipse and check if the the issue is resolved.

Hope it helps,

Daniel