String (@NotNull VirtualFile file, byte @NotNull [] content) { Charset charset = EncodingRegistry.getInstance().getDefaultCharsetForPropertiesFiles(file); if (charset == null) { charset = PROPERTIES_DEFAULT_CHARSET; } if (EncodingRegistry.getInstance().isNative2Ascii(file)) { charset = Native2AsciiCharset.wrap(charset); } return charset.name(); }