Hello ! I'm trying to create the dictionary which would handle Latin characters like (Å), µ and so on. Apparently I'm require some sort of encoding to Unicode. Is there a way to handle this problem? see code bellow
wordDic = {
'_chemical_formula_moiety': 'chemical formula ',
'_chemical_formula_weight': 'Fw ',
'_symmetry_space_group_name_H-M': 'space group ',
'_cell_length_a': 'a (Å)" ',
'_cell_length_b': 'b (Å)" ',
'_cell_length_c': 'c (Å)" ',
'_cell_angle_alpha': '(deg) ',
'_cell_angle_beta': '(deg) ',
'_cell_angle_gamma': '(deg) ',
'_cell_volume': 'V (3) ',
'_cell_formula_units_Z': 'Z ',
'_cell_measurement_temperature': 'T (K) ',
'_exptl_crystal_density_diffrn': 'calcd (g cm-3) ',
'_exptl_absorpt_coefficient_mu': ' µ (mm-1) ',
'_diffrn_radiation_wavelength': 'wavelength () ',
'_diffrn_reflns_theta_min': 'range (deg) ',
'_refine_ls_R_factor_all': 'R1 [all data] ',
'_refine_ls_R_factor_gt': 'R1a [I > 2s(I)] ',
'_refine_ls_wR_factor_ref': 'wR2 [all data] ',
'_refine_ls_wR_factor_gt': 'wR2b [I > 2s(I)] ',
'refine_ls_goodness_of_fit_ref': 'GOF ',
'ship': 'slip'}
wordDic = unicode(wordDic,'latin-1')