J'ai un fichier properties contenant des caractères accentués et des caractères spéciaux(en français) que je load puis j'y ajoute d'autres clé et valeurs mais quand je sauvegarde mon fichier; les caractères spéciaux sont transformé en caractères unicode
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 String in="D:/Mon_fichier.properties"; String out="C:" ; PropertiesService propertiesService = new PropertiesService (); Properties propertiesIn=propertiesService.loadProperties(in); Properties propertiesOut= new Properties (); propertiesService.updateProperties(propertiesIn,propertiesOut); propertiesService.saveProperties(propertiesOutput, out);
Partager