fralau / mkdocs-macros-plugin

Create richer and more beautiful pages in MkDocs, by using variables and calls to macros in the markdown code.
https://mkdocs-macros-plugin.readthedocs.io
Other
318 stars 50 forks source link

Variable not support Chinese characters #166

Closed icebilly closed 9 months ago

icebilly commented 1 year ago

Seems to be a charset issue. The content in red is from a variable, it's not decode correctly. image

github-actions[bot] commented 1 year ago

Welcome to this project and thank you!' first issue

fralau commented 1 year ago

There is no specific handling of characters in the code mkdocs-macros. Could you describe the problem more in detail?

icebilly commented 1 year ago

There is no specific handling of characters in the code mkdocs-macros. Could you describe the problem more in detail?

It's a codec issue, if I save the yml file with gbk codec, the chinese characters can be rendered correctly. Is there any possible to add a codec option in the plugin to let the user choose which codec they want to decode.

fralau commented 11 months ago

I am not familiar with those issues. There is no invocation of codecs in MkDocs macros. Where should that ideally take place?