encoding problem when exporting log
Hello,
how do I export the log of a repository to file with UTF-8 encoding if it contains characters such as ü, ä?
What I tried without success:
--- Changelog
bzr_logfile_path = os.path.
target_encoding = 'utf-8'
bzr_logfile = codecs.
p_log = subprocess.
(stdout, stderr) = p_log.communicate()
bzr_logfile.
bzr_logfile.close()
Now, I get this error:
"UnicodeDecodeE
The best would be to have something like:
bzr version-info --format python > library/log.py
P.S.: I would like to use the log file to automatically include this as a changelog in a Sphinx based documentation.
Any hints are welcome, thanks in advance!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Timmie
Can you help with this problem?
Provide an answer of your own, or ask Timmie for more information if necessary.