Shashidhar Kotta wrote: > We are using “–Dfile.encoding=UTF8” jvm args and now we are able to > pass multi-byte strings from ANT to Java and even from the cmd to > java also. > > But in our case we have string which has the characters from > different regions. That's why when we set the system to Korean region > and pass 'hmỘnяỘỆ' then only the 'я' characters is getting passed > properly. Other strings are coming as '?'(i.e 'hm?nя??')
Can you explain step by step what you are trying to achieve? How are you viewing the contents of the file you are producing? Are you using a viewing method that supports the UTF-8 encoding properly? This page:- http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 describes nicely the encoding structures you are dealing with. I'm sorry to say that I had an incorrect view of what could and could not be represented in this encoding. I see now I was incorrectly confusing UTF-8 with ASCII-8! If you are :- specifying various strings within an ant build.xml file, to have ant pass them through to your code, which then writes the String to a file... Then you need to be careful with what tools you use to view and check (perhaps edit) the result. How are you checking your result? What commands or application are you using to see 'hm?nя??' ? -- Mark --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org