]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/Certificate.java
FIX: add UTF-8 as charset where appropriate.
[gigi.git] / src / org / cacert / gigi / dbObjects / Certificate.java
index 9a857fe4e75d9b2640615172ee197e6937479017..affb1719fe8ff58a44e4a7db41edd1260438e408 100644 (file)
@@ -274,7 +274,7 @@ public class Certificate {
         File csrFile = KeyStorage.locateCsr(id);
         csrName = csrFile.getPath();
         FileOutputStream fos = new FileOutputStream(csrFile);
-        fos.write(csr.getBytes());
+        fos.write(csr.getBytes("UTF-8"));
         fos.close();
 
         GigiPreparedStatement updater = DatabaseConnection.getInstance().prepare("UPDATE certs SET csr_name=? WHERE id=?");