Web client encoding problem with Alerts from Android
Bug #986481 reported by
Tim Bentley
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenLP |
Invalid
|
Undecided
|
Unassigned | ||
Android |
Fix Released
|
Medium
|
Tim Bentley |
Bug Description
Android client sends an alert encoded
OpenLP displays the alert with spaces converted to "+".
http://
Changed in openlp: | |
status: | New → Invalid |
To post a comment you must log in.
Hi Tim,
You have probably already fixed this, but the bug is caused by the URL being encoded twice. openlp/ android/ activity/ Alert.java" not encoding the text from the edittext box will solve it.
In "/src/org/
Change: createRequestJS ON("text" , URLEncoder. encode( edittext. getText( ).toString( ), "utf-8"));
alert = JSONHandler.
to: createRequestJS ON("text" , edittext. getText( ).toString( ));
alert = JSONHandler.
I haven't had time to test this so can't be 100% sure it will work.
Hope this helps,
Ashley