Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoded words support #6

Open
Herz3h opened this issue Oct 25, 2019 · 1 comment
Open

Encoded words support #6

Herz3h opened this issue Oct 25, 2019 · 1 comment

Comments

@Herz3h
Copy link

Herz3h commented Oct 25, 2019

First of all thank you for this library. I've used it to retrieve some headers, and I stumbled upon a header that contained UTF-8 data, is there a way to decode this header using this library ?

Format seems to be ?=encoding?charset?mytexthere?=

Thank you.

@pcbeard
Copy link

pcbeard commented May 4, 2022

Seems to be documented in this RFC:

https://www.rfc-editor.org/rfc/rfc2047.html

I would also like to see this added. There is some code here that may be a good starting point:

https://github.com/bengottlieb/marcel/blob/master/Source/Marcel/String%2BMime.swift

I had to fix this code like so:

        while let range = result.range(of: utf, options: .caseInsensitive),
              let endRange = result[range.upperBound...].range(of: utfEnd),
              range.upperBound < endRange.lowerBound, !done {

guidedways added a commit to BeehiveInnovations/MimeParser that referenced this issue Apr 25, 2023
* Fix Header parser fails with empty headers miximka#14

* Support dynamic library

---------

Co-authored-by: Maksim Bauer <[email protected]>
Co-authored-by: miximka <[email protected]>
Co-authored-by: Fahad <[email protected]>
guidedways added a commit to BeehiveInnovations/MimeParser that referenced this issue Apr 25, 2023
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

No branches or pull requests

2 participants