Re: High ASCII in java code not compiling under Maven
Yep, already did that too. Just wanted to figure out if there was an easier way around this for the future. Turns out that 'maven.compile.encoding = iso8859-1' does the trick as well. jeff Martin Skopp wrote: Hi Jeff, On Fri, 2003-11-07 at 01:11, Jeffrey Bonevich wrote: I have a character encoding utility that turns high ASCII (i.e. ord value 127) into HTML entities (so '' which is unicode \u00e0 becomes 'agrave;'). In the code there is one big ol' honkin' switch statement with each high ascii character (that I care about) as a case, so: switch( chr) { case '': buf.append(agrave); break; After a few of our developers here changed from Win32 to Linux machines, we had even worse problems with encodings, since some diffferent editors on the different OS had different default encodings. It could be a real pain to do it, but I would recommend you anyway to change your code to switch( chr) { case '\u00e0': buf.append(agrave); break; /* char= */ cu, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: High ASCII in java code not compiling under Maven
switch( chr) { case 'à': buf.append(agrave); break; When I try to run my maven build goal, it will not compile this utility class, and I get a whole bunch of errors to the effect: case '?' already defined If I run javac, no problemo. Compiles just fine. I played around with system encoding in the project.xml and maven.xml files (was UTF-8, also tried iso-8859-1), and in my OS (linux) to no avail. Any clues? We had success with the 'maven.compile.fork=true' and 'maven.compile.encoding=iso8859-1' properties defined at the maven-java-plugin web page. http://maven.apache.org/reference/plugins/java/properties.html /* joakim erdfelt */
Re: High ASCII in java code not compiling under Maven
Thanx. That did the trick. jeff Erdfelt, Joakim wrote: We had success with the 'maven.compile.fork=true' and 'maven.compile.encoding=iso8859-1' properties defined at the maven-java-plugin web page. http://maven.apache.org/reference/plugins/java/properties.html /* joakim erdfelt */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]