Drkcore

12 01 2010 Python pylons Tweet

makoでutf-8を埋め込みたいとき

先頭行にcoding: utf-8と書いておけばいい。

そうしないとこんなエラーが出る。

CompileException: Could not read template using encoding of 'ascii'. Did you forget a magic encoding comment? in file

最初わからなかったけれど、あーそういうことねというメッセージだった。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021