← Back to team overview

openlp-core team mailing list archive

[Bug 986481] Re: Web client encoding problem with Alerts from Android

 

Hi Tim,

You have probably already fixed this, but the bug is caused by the URL being encoded twice.
In "/src/org/openlp/android/activity/Alert.java" not encoding the text from the edittext box will solve it.

Change:
alert = JSONHandler.createRequestJSON("text", URLEncoder.encode(edittext.getText().toString(), "utf-8"));

to:
alert = JSONHandler.createRequestJSON("text", edittext.getText().toString());

I haven't had time to test this so can't be 100% sure it will work.

Hope this helps,

Ashley

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/986481

Title:
  Web client encoding problem with Alerts from Android

Status in OpenLP - Worship Presentation Software:
  Invalid
Status in OpenLP android series:
  New

Bug description:
  Android client sends an alert encoded

  OpenLP displays the alert with spaces converted to "+".

  http://192.168.0.7:4316/api/alert?data=%7B%22request%22%3A%7B%22text%22%3A%22hello%2Bmum%22%7D%7D

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/986481/+subscriptions


References