MythTV-Clients / MythTV-Android-Frontend

Implementation of MythTV .25+ Services API for Android
GNU General Public License v3.0
66 stars 16 forks source link

Refuse to run MAF if non UTF-8 characters are received from MythTV #237

Open billmeek opened 11 years ago

billmeek commented 11 years ago

This is a result of #219. If the backend is run using a character set other than UTF-8, then the JSON parser can fail on characters outside of the 'normal' ASCII set, e.g. é.

MAF should detect the invalid character set (e.toString().contains( "Invalid UTF-8")), alert the user and refuse to run until the backend is properly configured.