View previous topic :: View next topic |
Author |
Message |
dreamkxd
Joined: 08 May 2007 Posts: 22
|
Posted: Fri May 30, 2008 6:35 am Post subject: A puzzle! |
|
|
I don't know which encoding used for the source code descent\descent.core\src\descent\internal\compiler\parser\ISignatureConstants.java
Is there anyone can help me?
Whe i build the plugins, the compiler hint me that the constant
ISignatureConstants
VARIABLE
and
SLICE
is two byte character! |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Fri May 30, 2008 6:57 am Post subject: |
|
|
I didn't have to specify any special encoding. Isn't it working with ascii? You can also try ansi, or utf-8. You can change the encoding of a file in the file's properties.
What error does it give you? |
|
Back to top |
|
|
dreamkxd
Joined: 08 May 2007 Posts: 22
|
Posted: Fri May 30, 2008 10:01 pm Post subject: |
|
|
You didn't specify the encoding? I don't think so !I think that your encoding is set as the default encoding of the operating system, which type of operating system that you used. the eclipse inherit the OS default encoding and then the descent project inherit the Eclipse encloding . the result is , if i don't change the setting , the my encoding is GBK/ a encoding for chinese. The I try to change the encoding of Descent to UTF-8,but elipse notify me two error!
Code: | Error:Duplicate case
On Element:SignatureProcessor.java
In folder descent.core/src/descent/internal/core
Location line 64
|
Code: | Error:Duplicate case
On Element:SignatureProcessor.java
In Folder:descent.core/src/descent/internal/core
Location: line 272
|
And I trace the variable
ISignatureConstants.VARIABLE
and
ISignatureConstants.SLICE.
I found these two character reprent as an unshowaable character
'�'.
So i think the encoding to UTF-8 is encorret!
And i don't know which encoding should be apply to Descent!
And when I encoding it to US-ASCII , it's represent the same result!
But if i change the encoding to ISO-8859-1, the result is corrent!
But even thought, i don't know which encoding is the corrent encoding!
Because I just have
GBK/US-ASCII/ISO-8859-1/UTF-8/UTF-16LE/UTF-16BE
these six choices.
So can tell me explicitly which encoding that you use!
You just need to view the properties of the file
/descent.core/src/descent/internal/compiler/parser/ISignatureConstants.java
in eclispe. Then you will found the encoding of this file in your computer!
Thanks! |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Fri May 30, 2008 11:25 pm Post subject: |
|
|
It's Cp1252 |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Fri May 30, 2008 11:27 pm Post subject: |
|
|
I would gladly type the characters you need in the VARIABLE and SLICE fields, but I get an SQL error from PHP when I try to do that. |
|
Back to top |
|
|
dreamkxd
Joined: 08 May 2007 Posts: 22
|
Posted: Fri May 30, 2008 11:47 pm Post subject: |
|
|
Thanks! I thinks it's would be better that if you change the default encoding to UTF-8!
And anyone that want to participate the Descent project will get profit! |
|
Back to top |
|
|
|