Skip to Content
avatar image
Former Member

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

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

Capture.JPG (134.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 16, 2015 at 11:51 AM
    16

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 27, 2014 at 06:35 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 23, 2015 at 04:06 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 06, 2015 at 01:26 PM

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

    Add comment
    10|10000 characters needed characters exceeded

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

      Thanks,

      Nithin

  • Mar 06, 2015 at 06:50 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded