Re: Passing multi-byte strings from ANT using task

2008-12-17 Thread Mark Salter
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

RE: Passing multi-byte strings from ANT using task

2008-12-17 Thread Shashidhar Kotta
al Message- From: Greg Roodt [mailto:gro...@gmail.com] Sent: Thursday, December 11, 2008 3:42 PM To: Ant Users List Subject: Re: Passing multi-byte strings from ANT using task Ok, could you send me a simplified version of your Java code that is writing the data to a file? Does this work cor

RE: Passing multi-byte strings from ANT using task

2008-12-12 Thread Rez
mples: > Subject: RE: Passing multi-byte strings from ANT using task> Date: Thu, 11 Dec 2008 15:57:39 +0530> From: shashidhar.ko...@ness.com> To: user@ant.apache.org> > > Hi,> > I have tried with your ANT code but it is displaying ?m?n??? only.> > Here is

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Steve Loughran
- You should specify unicode content in the XML as valid XML content, not escaped \u0123 style. -The task and things that use it set up the command line; there's a risk that it could get in the way and not preserve high unicode content. If so, its something we need to test for -A more rel

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
Mark, Basically SK wants to pass a System Property into a Java programme executed by Ant. The problem is, that he wants to set non-ASCII characters as the System Property, which is a bit tricky. I agree with you, we need a clearer understanding of what SK is trying to achieve and perhaps BASE-64 o

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Mark Salter
Shashidhar Kotta wrote: > Hi, > > I have tried with your ANT code but it is displaying ?m?n??? only. Your code is encoding the String it sees into UTF-8, this is likely the right output, but not what you expected? You need to think through what you are trying to do, but from this result, I would

RE: Passing multi-byte strings from ANT using task

2008-12-11 Thread Shashidhar Kotta
ent: Thursday, December 11, 2008 3:42 PM To: Ant Users List Subject: Re: Passing multi-byte strings from ANT using task Ok, could you send me a simplified version of your Java code that is writing the data to a file? Does this work correctly for you? On Thu, Dec 11, 2008 at 9:4

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
Kotta. > > -Original Message----- > From: Greg Roodt [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2008 2:03 PM > To: Ant Users List > Subject: Re: Passing multi-byte strings from ANT using task > > This is a guess, but try using the Unicode escape seque

RE: Passing multi-byte strings from ANT using task

2008-12-11 Thread Shashidhar Kotta
---Original Message- From: Greg Roodt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2008 2:03 PM To: Ant Users List Subject: Re: Passing multi-byte strings from ANT using task This is a guess, but try using the Unicode escape sequences for your sysproperty. On Thu, Dec 11,

Re: Passing multi-byte strings from ANT using task

2008-12-11 Thread Greg Roodt
This is a guess, but try using the Unicode escape sequences for your sysproperty. On Thu, Dec 11, 2008 at 7:12 AM, Shashidhar Kotta <[EMAIL PROTECTED] > wrote: > > Hi All, > > > > In our project we have requirement to pass multi-byte strings from ANT to > java program. We are passing multi-byte

Passing multi-byte strings from ANT using task

2008-12-10 Thread Shashidhar Kotta
Hi All, In our project we have requirement to pass multi-byte strings from ANT to java program. We are passing multi-byte strings using the ANT task. In the java program we are retrieving it using the System.getProperty() method and saving that value to a text file which is in UTF-8 format