I have the same problem!
Modifying the java sources putting direclty the unicode string IS NOT A
CLEVER SOLUTION.
Any other hints?
Thanks and best regards.
Raffaele
Luca Gmail wrote:
>
> The file is the same :)
>
>
>
> Tnx for your answer.
>
>
> On 6/19/06, Thorsten Heit <[EMAIL PROTECTED]> wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Luca,
>>
>> > when i try to compile my project i have this error :
>> >
>> > duplicate case label error.
>> >
>> > Below the code where the error is raised:
>> >
>> > for (int i = 0; i < n; i++) {
>> >
>> > char c = s.charAt(i);
>> >
>> > switch (c) {
>> >
>> > case '<': sb.append("<"); break;
>> >
>> > case '>': sb.append(">"); break;
>> >
>> > case '&': sb.append("&"); break;
>> >
>> > case '"': sb.append("""); break;
>> >
>> > case 'à': sb.append("à");break;
>> >
>> > case 'À': sb.append("À");break;
>> >
>> > case 'â': sb.append("â");break;
>> >
>> > case 'Â': sb.append("Â");break;
>> >
>> > case 'ä': sb.append("ä");break;
>> >
>> > case 'Ä': sb.append("Ä");break;
>> >
>> > case 'å': sb.append("å");break;
>> >
>> > case 'Å': sb.append("Å");break;
>> >
>> > case 'æ': sb.append("æ");break;
>> >
>> > case 'Æ': sb.append("Æ");break;
>> >
>> > case 'ç': sb.append("ç");break;
>> >
>> > …
>> >
>> >
>> >
>> > In all the line.
>> >
>> > I compiled in windows machine and all works fine.
>> >
>> > I try ti compile in my linux machine and I have that error.
>>
>> That's a simple encoding problem in source code files - you're using
>> non-ASCII characters in the above Java code... (have a look into your
>> file on a Windows machine and then on a Linux box; it probably looks
>> different)
>>
>> If you really have to use non-ASCII characters in a text file
>> (properties file, Java source code etc.), you'd better use unicode
>> notation instead (\u00E6 for "æ" etc.).
>>
>>
>> HTH
>>
>> Thorsten
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.3 (MingW32)
>>
>> iD8DBQFElqUbQvObkgCcDe0RAteCAKCowelIRFulB1FgK28SK4ZY1IUaYwCfRKAT
>> X4JHDYpMoeKB54pS12C30Kc=
>> =TonV
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/maven.compile.encoding-problem-%28-%29-tf1811337s177.html#a13423901
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]