In findbugs, I have several warring under theis section: DEFAULT_ENCODING It looks like I have to add encoding code "UTF-8" to solve it.
The note is :
Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behaviour to vary between platforms. Use an alternative API and specify a charset name or Charset object explicitly.
What did they mean with the alternative API ? (Use an alternative API and specify a charset name or Charset object explicitly.)
How can I fix this warning?
Reader reader = null;
try {
reader = new FileReader(store);