I am adopting j2mepolish into my several j2me projects. all my source files in the projects are using UTF-8 as their encoding with some Chinese constant strings and a lot of Chinese comments in them.
However, the j2mepolish's ant building process complains a lot about when compiling the preprocessed source files. I have checked the real executed "javac" command in the "fork" mode, and the ant correctly appended the "-encoding UTF-8" in the command line, so far so good. But when I opened the preproccessed source files using Eclipse and vim, it is obvious that some of the multibytes UTF-8 characters(Chinese characters) in the source files were corrupted. My conclusion is that j2mepolish's preprocessing doesn't take the source files encoding into account when preprocessing them, messed the multibytes characters in them, and later caused the compilation problems.
I still don't have a solution to it. There are no instructions or directives on how to set the file encoding in the ant build file during preprocessing stage, so
anyone have experience on this? Or any other solutions?
Thanks a lot in advance, good day! :-)