Set the dictionary encoding of files created by the perl module.
[pspp-builds.git] / perl-module / PSPP.xs
index 77a720caabf69cc17a172ab2c0b1233b7baa9987..fef855106de4347ba324e59434e2e4dd94941b54 100644 (file)
@@ -584,6 +584,7 @@ CODE:
  struct file_handle *fh =
   fh_create_file (NULL, name, fh_default_properties () );
  struct sysfile_info *sfi = xmalloc (sizeof (*sfi));
+ dict_set_encoding (dict, "UTF-8");
  sfi->writer = sfm_open_writer (fh, dict, opts);
  sfi->dict = dict;
  sfi->opened = true;