There are two places where a check for the character encoding (US-ASCII).
Reading Operations:
-------------------
When I read a bunch of bytes from the file I conver them to
String objects using
new String(byte[] data,String encoding). In this case I provide the encoding to convert the bytes into a String.
Writing Operations:
-------------------
When I write a String into the database file I first convert it into an array of bytes using
String.getBytes(String encoding). In this case I provide the encoding I want to use to convert the String into bytes.
In both cases I am taking the default encoding value from the
suncertify.properties file. To make sure that the configured encoding is supported I validate the settings during the application startup using:
Charset.availableCharsets().containsKey(String myEncoding).
I hope this helps!