Fixed a regression in the QR Code encoder. The contents do not need to be run through URLEncoder first.

git-svn-id: https://zxing.googlecode.com/svn/trunk@690 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin 2008-11-12 14:40:23 +00:00
parent 977c2e38ca
commit acd409b094

View file

@ -30,7 +30,6 @@ import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import java.net.URI;
import java.net.URLEncoder;
public final class QRCodeEncoder {
@ -163,7 +162,7 @@ public final class QRCodeEncoder {
AndroidHttpClient client = null;
try {
String url = CHART_SERVER_URL + mPixelResolution + "x" + mPixelResolution + "&chl=" +
URLEncoder.encode(mContents, "UTF8");
mContents;
URI uri = new URI("http", url, null);
HttpGet get = new HttpGet(uri);
client = AndroidHttpClient.newInstance(mUserAgent);