Skip to content

a little mod to deal with chinese file #2

Description

@mmyjona

when I use this plugin to convert pandoc file including Chinese Chars.

Traceback (most recent call last):
File ".\sublime_plugin.py", line 356, in run_
File ".\PandocRender.py", line 37, in run
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-16: ordinal not in range(128)

I moded PandocRender.py line 37 from

tmp_md.write(contents)

to

tmp_md.write(contents.encode(encoding))

then html conversion is fixed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions