안드로이드 소스는 대충

HttpPost post = new HttpPost(UPDATE_URL);
                    List <NameValuePair> nvps = new ArrayList <NameValuePair>();
                    nvps.add(new BasicNameValuePair("username", login));
                    nvps.add(new BasicNameValuePair("password", pw));
                    post.setHeader("Content-Type", "application/x-www-form-urlencoded");
                    post.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
                    response = client.execute(post);
                    entity = response.getEntity();
                    InputStream is = entity.getContent();
                    read(is);
                   
                    is.close();

 

이런식으로 아이디와 패스워드를 전송합니다

문제는 php 에서 데이터를 전송 받을때 문제가 생기는데

전송된 id 와 pw 가

만약

id = test2

pw = 1413

으로 전송한다 치면 php 에서는 0 과 59로 전송되버립니다..;;

id를 숫자로만 전송할때는

예로들어 1212 보낼때는 정상적으로 출력됩니다

 

결론적으로 패스워드 는 말도안돼는 값이 전송돼고

아이디는 문자열이 전송되지 않습니다

 

인코딩에서 문제가 있는건가요?

문자열 처리를 따로 해줘야 하는지 알고싶습니다