Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

charsetの指定がないため環境によって文字化けする #5

@Leko

Description

@Leko

ordinance-format-jpが出力するHTMLに<meta charset="UTF-8">などのエンコーディングの設定がないため、環境によって文字化けします。

ordinance-format-jpで出力したHTMLをReact NativeのWebViewで開くと文字化けします
出力されたHTMLを手動で修正し、<meta charset="UTF-8">を加えたところ、文字化けしなくなりました。

    return `<html><head><style>\n${style}</style><body>\n${html}</body></html>`

https://github.com/CureApp/ordinance-format-jp/blob/master/src/elements/document.js#L86

対応

<meta charset="UTF-8">を出力するHTMLの中に入れるのが良いと思います。

ご確認をお願いします

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions