Issue while running "lektor server" command on windows
<p>Python version : 2.7</p>

<p>Showing the following error on lektor server command</p>

<pre><code>Traceback (most recent call last):
  File "/Users/item4/Projects/lektor/lektor/devserver.py", line 49, in build
    builder.prune()
  File "/Users/item4/Projects/lektor/lektor/builder.py", line 1062, in prune
    for aft in build_state.iter_unreferenced_artifacts(all=all):
  File "/Users/item4/Projects/lektor/lektor/builder.py", line 371, in iter_unreferenced_artifacts
    and is_primary_source''', [artifact_name])
ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
</code></pre>

<p>Finally I got the answer. It may helpful</p>

<p>I have edited /Users/item4/Projects/lektor/lektor/builder.py and added a single line</p>

<pre><code>con.text_factory = lambda x: unicode(x, 'utf-8', 'ignore')
</code></pre>

<p>after the following line</p>

<pre><code>con = sqlite3.connect(self.buildstate_database_filename,
                              timeout=10, check_same_thread=False)
</code></pre>

<p>Ref Link : <a href="http://hakanu.net/sql/2015/08/25/sqlite-unicode-string-problem/" rel="nofollow">http://hakanu.net/sql/2015/08/25/sqlite-unicode-string-problem/</a></p>

python lektor