Strings that are returned from the Rust implementation are encoded as
utf8. To avoid issues with certain special characters (e.g. german
umlauts), we also need to explicitly store the configuration files in
utf8 encoding.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
[FE: use flag parameter instead of encoding as a string]
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
};
my ($config, $priv_config) = $notification_config->write_config();
- cfs_write_file('notifications.cfg', $config);
- cfs_write_file('priv/notifications.cfg', $priv_config);
+ cfs_write_file('notifications.cfg', $config, 1);
+ cfs_write_file('priv/notifications.cfg', $priv_config, 1);
}
sub default_target {