这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@quzhi1
Copy link

@quzhi1 quzhi1 commented Jun 13, 2024

Hello @emersion ,

Can I add support to iso-8859-1 encoding? I saw this encoding is supported in charset.go, but not encoding.go: https://github.com/emersion/go-message/blob/master/charset/charset.go#L27

I am fairly new to this library. Please let me know if I need to make more changes to support iso-8859-1.

ps: Can I add some more encodings? I can do it as part of this PR.

Thank you.

Zhi Qu

@quzhi1
Copy link
Author

quzhi1 commented Jun 14, 2024

@emersion I added a list of popular encodings. In that way we can parse emails a lot easier. Can you take a look? 🙏

@emersion
Copy link
Owner

The way the library is designed, by default no encodings are included so that the library doesn't result in a much bigger binary size. Users can opt-in to import common encodings. See https://pkg.go.dev/github.com/emersion/go-message#pkg-overview

@quzhi1 quzhi1 closed this Jun 14, 2024
@quzhi1
Copy link
Author

quzhi1 commented Jun 14, 2024

Thank you @emersion ! I just tested and it works. PR is closed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants