Set dictionary's encoding when reading gnumeric files
[pspp-builds.git] / src / data / gnumeric-reader.c
index 00a07d2f8a2b4ff57fb51f01c569b41a1d33f7ba..f2f4e52f58294d846aaa05b8d4f36d9df666917f 100644 (file)
@@ -497,6 +497,8 @@ gnumeric_open_reader (struct gnumeric_read_info *gri, struct dictionary **dict)
   /* Create the dictionary and populate it */
   *dict = r->dict = dict_create ();
 
+  dict_set_encoding (r->dict, (const char *) xmlTextReaderConstEncoding (r->xtr));
+  
   r->value_cnt = 0;
 
   for (i = 0 ; i < n_var_specs ; ++i )