Comments (1)
I am watching this issue because similar bug is occured at my Windows 8, Python 2.7.5.
And i encountered a similar error with Jekyll and also Hyde
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte
(HYDE)
Solved with removing Unicode BOM characters programmatically from my content files. Or manually
from http://stackoverflow.com/a/8898439/1766716
def removeBom(file):
import os, sys, codecs
BUFSIZE = 4096
BOMLEN = len(codecs.BOM_UTF8)
with open(file, "r+b") as fp:
chunk = fp.read(BUFSIZE)
if chunk.startswith(codecs.BOM_UTF8):
i = 0
chunk = chunk[BOMLEN:]
while chunk:
fp.seek(i)
fp.write(chunk)
i += len(chunk)
fp.seek(BOMLEN, os.SEEK_CUR)
chunk = fp.read(BUFSIZE)
fp.seek(-BOMLEN, os.SEEK_CUR)
fp.truncate()
return 0
Encode Unicode files to -> Unicode Without BOM.
BUT, i encountered this error at the very beginning of the installation, in other words i have no content files and no content files with Unicode or with UTF without BOM.
Error while rendering page /prerendered/hyde-icon.png
***********************
Generation Failed
(... Lots of text ...)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte
from hyde-old.
Related Issues (20)
- Context variables not inherited? HOT 3
- Compass support? HOT 2
- add cssmin to requirements.txt HOT 1
- Why is pip needed? HOT 2
- What is the hyde 0.8 equivalent of generate_clean_urls? HOT 1
- Better support for extensionless URLs HOT 2
- Jinja2 is parsing CSS & chokes on valid syntax HOT 4
- markdown inline HTML problem HOT 1
- Error trying to generate a fresh site "Cannot load the markdown library" HOT 2
- jQuery 1.7 and hyde server HOT 1
- -k doesn't watch for changes, as far as I can tell HOT 1
- Sample of multilanguage application HOT 1
- refer no longer pulling in content HOT 2
- Config file inheritance doesn't work as documented HOT 2
- Arbitrary site variables HOT 2
- override block gets duplicated
- how do i set up a new install HOT 1
- how to publish a post?
- /prerendered/hyde-icon.png causes error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyde-old.