Illegal characters in Java code?
Illegal characters in Java code?
- Subject: Illegal characters in Java code?
- From: James Closs <email@hidden>
- Date: Mon, 25 Jun 2007 14:56:24 +0100
Hi,
I have a piece of java code below that coverts non-standard
characters to the nearest equivalent:
switch( next_char )
{
case '¿':
next_char = '?';
break;
case 'ñ':
next_char = 'n';
break;
//
// etc
//
}
This method is compiling and running fine in one class file, yet when
I copy and paste it into another class file it won't compile. I keep
getting 'unclosed character literal' and 'illegal character errors'.
Can anyone help? Both files are saved in the same encoding (western -
mac) and source file encoding is set the same in the target settings,
in fact I never really mess with this stuff so all settings are
pretty standard.
Any assistance appreciated...
====
James Closs, Director, bitBull Ltd
http://www.bitbull.com
07771 991171
====
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden