Ohh, just do PHP: $symbol = $this->getConfig()->get("Symbol"); and use $symbol instead of the hearts. Also create a new Folder in Source Files which is called resources. In there, create a config.yml File. In the config.yml file, add Symbol: ♥
You can. If you put special characters into your config, Minecraft: PE will assume that you used UTF-8 because Config will just return the text in the config as-is, without any conversion, specification or assumption of characters sets. Same with putting special characters in quotes in PHP code. Therefore, always code in UTF-8 and edit configs using UTF-8 because that's what MCPE will assume it as.
so why when i set in config something with § so: yaml_parse(): reading error encountered during parsing: invalid leading UTF-8 octet (line 1, column 1)
using § in plugins is bad practice and can cause errors and sometimes dosen't work, use TextFormat::<color>. You can use a str_replace() if you want to use the symbol in a config and change it to TextFormat::<color>.
Usually, in MCPC a & is used instead of §, and then the plugin will str_replace("&","§",$string); so colours would be &a, &b, &c etc. You may find this easier than {COLOR} I actually use this function in my Utils class: PHP: public static function colour($string) { return preg_replace("/&([0123456789abcdefklmnor])/i", "§$1", $string);} This prevents strings like "Hi & Hello!" being changed to "Hi Hello", and it will only replace the & when there is a valid colour code after it.