Use UTF-8 as default encoding
Since March 2014 Bukkit has been converting and preparing plugins for UTF-8 compliance. With this change in place, all plugins will now load their configuration files as UTF-8, which is a supported encoding on any valid JVM implementation. This should pose no issues on any server which has run Bukkit after 2014, and the only possible breaking path is when an embedded file is of a non UTF-8 compatible encoding (which it should not be anyway). By: Matt <mattbdev@outlook.com>
This commit is contained in:
@@ -2,8 +2,6 @@ package org.bukkit.plugin;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
/**
|
||||
* Represents a concept that a plugin is aware of.
|
||||
* <p>
|
||||
@@ -21,8 +19,9 @@ public interface PluginAwareness {
|
||||
* This specifies that all (text) resources stored in a plugin's jar
|
||||
* use UTF-8 encoding.
|
||||
*
|
||||
* @see JavaPlugin#getTextResource(String)
|
||||
* @deprecated all plugins are now assumed to be UTF-8 aware.
|
||||
*/
|
||||
@Deprecated
|
||||
UTF8,
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user