J2ME and NetBeans
I'm talking with php page which tooks the parameters by GET and return the result as xml file which I read in my mobile application to get the result. (something like ajax)
the problem is that I send in the url some arabic names, like this:
http://www.mywebsite.com/index.php?name=اسدالقدس
but when I send it it becomes like
http://www.mywebsite.com/index.php?name=????????
All my attempts failed...Code:String url="http://www.xxxxx.com/index.php?name=اسدالقدس"; url = new String(url.getBytes("utf-8"),"utf-8"); HttpConnection httpConnection = (HttpConnection) Connector.open(new String()); KXmlParser parser = new KXmlParser(); parser.setInput(new InputStreamReader(httpConnection.openInputStream(), "UTF-8")); parser.nextTag(); parser.require(XmlPullParser.START_TAG, null, rootTag);
the parameter entered in the database like this ????
any help would be greatly appreciated.

Reply With Quote

