The code should not rely on default encoding. Using UTF-8 as that is the standard (and was also used in most cases till now). http://findbugs.sourceforge.net/bugDescriptions.html#DM_DEFAULT_ENCODING