cancel
Showing results for 
Search instead for 
Did you mean: 

Activate .xsapp: Unsupported encoding Cp1252, only UTF-8 encoding is supported

0 Kudos

Hi,

I'm new to HANA/XS. I'm trying to create a test Hana application. I have eclipse luna 4.4.1 installed. I have installed Hana plugin from https://tools.hana.ondemand.com/luna (screen shot below):

I have connected to a HANA system, created repository, packages etc. Basically all the necessary things to create a test HANA XS project.

But, when I create .xsapp and .xsaccess I get the following error whenever I try to activate those files:

Unsupported encoding Cp1252, only UTF-8 encoding is supported

Am I missing something? I tried finding similar error in the forum, but I was not successful. Kindly try to help me.

Thanks & Regards,

Lohit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Lohit,

I had the same problem. Change the default encoding in Eclipse to UTF-8 (window -> prefecences -> general -> workspace) and then delete the project from Eclipse. Then check it back out from the HANA repository. This worked for me.

Regards,

Gert

Former Member
0 Kudos

This solution also worked for me.

Thanks!

G.

michael_speight2
Explorer
0 Kudos

Thanks Gert! Worked for me too.

Regards,

Mike

prasad_ulagappan2
Contributor
0 Kudos

Great!!!!  It worked for me as well..

jyothiraghav_jinka
Participant
0 Kudos

Thanks it worked

Former Member
0 Kudos

Thanks buddy, it worked great for me..was facing the same issue in Eclipse mars 1.0

Regards,

B Salil

Former Member
0 Kudos

This message was moderated.

DilipMami
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gert,

This resolved the issue.

Thanks

Dilip

0 Kudos

Nice it resolved my issue too..

former_member746118
Discoverer
0 Kudos

it worked for me too.

Answers (4)

Answers (4)

former_member189246
Discoverer

Hi,

On right clicking the error in Problems view, the system gives a Quick fix to it.

As it says Hana Studio(Kepler version) doesnot support cp125 encoding format, rather sets to UTF8 format.

Or it can be manually set to UTF8 in windows -> Preferences.

former_member369865
Discoverer
0 Kudos

Hi Asma,

This worked for me! Thank you!

former_member292247
Discoverer
0 Kudos

Hi Asma,

I tried your solution in order to fix an encode error and worked for me!

Thank you!

Former Member
0 Kudos

Can someone mark this answer as "correct answer" please? So I can get some points...

nithinu
Participant
0 Kudos

Wow, this worked for me as well Thanks Gert ! And I would suggest Mr. to mark this question as answerd, please !

Thanks,

Nithin

Wineman
Product and Topic Expert
Product and Topic Expert
0 Kudos

This solution works in general, but I would like to understand, why we are facing here issues. The error is thrown by the files ".xsapp" and ".xsaccess" - is it planned that HANA will support the Eclipse Luna standard codepage cp1252 also? Does anybody know?

vikrant_dev1
Participant
0 Kudos

Some versions of eclipse luna do have this issue. Not sure this is the best way but you can update environment variables may be:

right click My Computer -> Properties -> Advanced system settings -> Environment Variables -> Add new user variable -> JAVA_TOOL_OPTIONS with value as -Dfile.encoding=UTF-8

You need to restart Eclipse to test.

0 Kudos

Hi Vikrant,

Thanks. I tried your suggestion. But it did not work. As you said this a problem in Luna.

But when I tried in Kepler, it did not give me any error.

Thanks & Regards,

Lohit

Former Member
0 Kudos

Thanks Vikrant.

it worked for me.