I have an API to get places.
Using web browser, it shows:
<placeID>5</placeID>
<placeName>!@#$%&*?/_"'()-+;</placeName>
<rating>0</rating>
<categoryID>2</categoryID>
</place>
Using HttpGet and outputing to console, it shows:
<place>
<placeID>5</placeID>
<placeName>!@#$%&*?/_"'()-+;</placeName>
<rating>0</rating>
<categoryID>2</categoryID>
</place>
Displaying placeName on Android, it shows !@#$%
I store raw string in database and use htmlspecialchars($placeName) in the API.
The problem is the same with ?~=\^[]{}<>:);):(:'(:o:P:$:S
, it becomes ?~=\^[]{}<>:);):(:'(:o:P:$:S
in console and ?~=\^[]{}
on Android.
I want to show all the special characters on Android just like it is stored in database.