FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A puzzle!

 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
dreamkxd



Joined: 08 May 2007
Posts: 22

PostPosted: Fri May 30, 2008 6:35 am    Post subject: A puzzle! Reply with quote

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
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri May 30, 2008 6:57 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
dreamkxd



Joined: 08 May 2007
Posts: 22

PostPosted: Fri May 30, 2008 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri May 30, 2008 11:25 pm    Post subject: Reply with quote

It's Cp1252 Confused
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri May 30, 2008 11:27 pm    Post subject: Reply with quote

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. Razz Laughing
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
dreamkxd



Joined: 08 May 2007
Posts: 22

PostPosted: Fri May 30, 2008 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group