old_contents: import os
  from flask import Flask, render_template
  from jinja2 import Template
  
  app = Flask(__name__, template_folder='.', static_url_path='', static_folder='..')
  app.config.from_pyfile('settings.py')
  
  BASE = '/%s' % app.config['REPO_NAME']
  
  @app.route('/')
  def home():
      with open('talk.md', 'r') as f:
          template = Template(f.read())
          markdown = template.render(base=BASE)
          js_file = 'talk.js'
          if os.path.isfile(js_file):
              with open(js_file, 'r') as f_js:
                  js = f_js.read()
          else:
              js = ''
          return render_template('slides.html', markdown=markdown, js=js)
  
  
  if __name__ == '__main__':
      BASE = ''
      port = int(os.environ.get('PORT', 5000))
      app.run(host='0.0.0.0', port=port)
  
new_contents: import os
  from flask import Flask, render_template
  from jinja2 import Template
  
  app = Flask(__name__, template_folder='.', static_url_path='', static_folder='..')
  app.config.from_pyfile('settings.py')
  
  BASE = '/%s' % app.config['REPO_NAME']
  
  @app.route('/')
  def home():
      with open('talk.md', 'r') as f:
          template = Template(f.read().decode('utf-8'))
          markdown = template.render(base=BASE)
          js_file = 'talk.js'
          if os.path.isfile(js_file):
              with open(js_file, 'r') as f_js:
                  js = f_js.read()
          else:
              js = ''
          return render_template('slides.html', markdown=markdown, js=js)
  
  
  if __name__ == '__main__':
      BASE = ''
      port = int(os.environ.get('PORT', 5000))
      app.run(host='0.0.0.0', port=port)
  
subject: Fix utf-8 problem with åäö and friends.