Help us understand the problem. What is going on with this article?

gnsync@geeknoteで日本語表示できなくなっちゃった

More than 5 years have passed since last update.

strip unprintable charactersをコメントアウト
日本語はprintableじゃないのか。。

    def _get_file_content(self, path):
        """
        Get file content.
        """
        content = open(path, "r").read()

        # strip unprintable characters
        # content = ''.join(s for s in content if s in string.printable)

        content = editor.textToENML(content=content, raise_ex=True, format=self.format)

        if content is None:
            logger.warning("File {0}. Content must be " \
                           "an UTF-8 encode.".format(path))
            return None

        return content
kametaro
今年でエンジニア生活22年目 COBOLer | SIer | fujisan.co.jp | dely.jp | retail-ai.jp url.joor.net/cke url.joor.net/ckf App/サーバサイド/Cloud データエンジニア/機械学習 数学好き
https://note.com/long10
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away