# coding: utf-8 def foo(): """ã»ã«ããã"""
ä¸è¬çã«docstringã¨è¨ããã¦ãã¦æ¨æºçã«ä½¿ãããããã¥ã¡ã³ãå½¢å¼ãªãã ãã©ãä¸è¨ã®ããã«é常ã®æååã¨ãã¦æ¸ããå ´å㯠(Python 2.xã§ã¯) byte string ã«ãªããutf-8ã§ã¨ã³ã³ã¼ãããã¦ããã¨ããæ
å ±ãæãã¦ãã¾ãã
å½ç¶ã®ããã«ãéASCIIãªbyte stringã¯æ
éã«æ±ããªãã¨ãããã«UnicodeErrorã«ãªãã
from __future__ import unicode_literals ããããã u"""ã»ã«ããã""" ã¨æ¸ãã¹ãã
ä¾ãã°ãTrac-ja ãè¨å®é ç®ã®docstringãbyte stringã§æ¸ãã¦ãã¦ãiniadminã¨ãããã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã¨ãdocstringã表示ãããã¨ãã¦UnicodeDecodeErrorã«ãªããTrac-jaã使ãã¨ã㯠defaultencoding ã utf-8 ã«ããã¨ããããããã¦ãã¦ã横è¡ãã¦ããããããã¯æ¢ãããã