encoding problem while posting variables

Hello,iam facing an encoding problem while posting variables from java application to a coldfusion page. for example "? becomes "?"anyone knows how to fix it?iam using HttpClient to post
[214 byte] By [javamaka] at [2007-10-2 10:57:12]
# 1
common guys no one can help ?
javamaka at 2007-7-13 3:23:21 > top of Java-index,Java Essentials,Java Programming...
# 2
Are you setting a Content-Type header? http://jakarta.apache.org/commons/httpclient/charencodings.html
aconst_nulla at 2007-7-13 3:23:21 > top of Java-index,Java Essentials,Java Programming...
# 3

yes i tried

method.addRequestHeader("Content-Type", "charset=iso-8859-1");

but didnt work

when my variable is for example "Bonne ann閑 & ?" and posted to coldfusion page which in turn store into DB if i check my DB i find "Bonne ann?e & ? ? ?"

javamaka at 2007-7-13 3:23:21 > top of Java-index,Java Essentials,Java Programming...
# 4
I think thats the default anyway (althouh Im not sure whether or not HttpClient always sends the header if you dont specify it).Are you specifying the parameters in the URL or in the body as an HTTP Post?Is the receiving side honouring the character encoding?
aconst_nulla at 2007-7-13 3:23:21 > top of Java-index,Java Essentials,Java Programming...
# 5

This is my code i hope it helps

public class HttpPostVariables {

public static int PostVariables(String URL, Hashtable variables)

{

PostMethod method;

int statusCode=-1;

try {

method = new PostMethod( URL );

//Loop thru the variables Hashtable and Construct the Parameter of the Post Method

Enumeration enumaration = variables.keys();

int i=1;

while(enumaration.hasMoreElements())

{

String values = (String) enumaration.nextElement();

method.addParameter(values.toString(),variables.get(values).toString());

i++;

}

//method.setRequestHeader("Content-Type", PostMethod.FORM_URL_ENCODED_CONTENT_TYPE);

HttpClient client = new HttpClient();

// Execute the POST method

statusCode = client.executeMethod( method );

if( statusCode != -1 ) {

String contents = method.getResponseBodyAsString();

method.releaseConnection();

System.out.println( contents );//to debug

}

}

catch( Exception e )

{

e.printStackTrace();

}

return statusCode;

}//End PostVariables methods

}//HttpPostVariables

and this is how i call it

String turl = "http://192.168.0.7/........../mak.cfm";

String infoMessage = "Bonne ann閑 & ?";

Hashtable vars = new Hashtable();

vars.put("info_Message",infoMessage);

PostVariables(turl, vars);

javamaka at 2007-7-13 3:23:21 > top of Java-index,Java Essentials,Java Programming...