title: How to set the text encoding for a Room database?
body: <p>I'd like to be able to estimate the NVM size each row in a given <a href="https://developer.android.com/topic/libraries/architecture/room" rel="nofollow noreferrer">Room database</a> is likely to take; the values are all Strings in Java, so I need to know the encoding format that will be used for the underlying SQLite database by Room -- how can I tell Room which encoding to use (e.g. UTF-8) or check programmatically which encoding it is using for text?  Assuming the encoding is not configurable, what would it be hard-coded to?</p>
  
  <p>I expected something like</p>
  
  <pre><code>@Database(entities = {TestEntity.class}, version = 1, encoding = "UTF-8")
  public abstract class AppDatabase extends RoomDatabase 
  </code></pre>
  
  <p>to work, but the encoding param is not recognized.</p>