How can I save my String in UTF-8? Code (Java): this.yamlConfiguration.set("Name", "&8» &aTeleporter"); Output Code (Java): Name: "&8\xbb &aTeleporter"
You will have to load as UTF-8 Code (Java): FileConfiguration cFile = YamlConfiguration.loadConfiguration(file); Reader defConfigStream; try { defConfigStream = new InputStreamReader(JavaPlugin.getResource("file.yml"), "UTF8"); if (defConfigStream != null) { YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream); cFile.setDefaults(defConfig); } } catch (UnsupportedEncodingException e) { e.printStackTrace(); } Or something like that
your \xbb symbol is unicode. /xbb is the utf_8 translation of your symbol. if you want the symbol to render in the file, you need to save as the unicode character set. utf_8 is already the default.