|
From: Dave P. <dav...@gm...> - 2015-05-03 06:51:41
|
I've a few Unicode utf-8 characters in a md file.
I set the emacs buffer to Unix, utf-8
but when I save the file, a script 'convert-markdown.sh'
seems to be called and the buffer is converted to DOS
Is it possible to stop this please?
error is
Traceback (most recent call last):
File "/files/python/mymarkdown.py", line 13, in <module>
text = input_file.read()
File "/usr/lib64/python2.7/codecs.py", line 668, in read
return self.reader.read(size)
File "/usr/lib64/python2.7/codecs.py", line 474, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb1 in position
4999: invalid start byte
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
|