forked from openlp/openlp
Make presentation controller save notes and titles in utf-8 encoding. Fixes bug 1424972.
Fixes: https://launchpad.net/bugs/1424972
This commit is contained in:
parent
4847efdfd6
commit
98b2be5bc7
@ -331,12 +331,12 @@ class PresentationDocument(object):
|
||||
"""
|
||||
if titles:
|
||||
titles_file = os.path.join(self.get_thumbnail_folder(), 'titles.txt')
|
||||
with open(titles_file, mode='w') as fo:
|
||||
with open(titles_file, mode='wt', encoding='utf-8') as fo:
|
||||
fo.writelines(titles)
|
||||
if notes:
|
||||
for slide_no, note in enumerate(notes, 1):
|
||||
notes_file = os.path.join(self.get_thumbnail_folder(), 'slideNotes%d.txt' % slide_no)
|
||||
with open(notes_file, mode='w') as fn:
|
||||
with open(notes_file, mode='wt', encoding='utf-8') as fn:
|
||||
fn.write(note)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user