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

encoding problems - v2 #94

Open
diegoiast opened this issue Mar 28, 2022 · 0 comments
Open

encoding problems - v2 #94

diegoiast opened this issue Mar 28, 2022 · 0 comments

Comments

@diegoiast
Copy link

In #89 (comment) you mentioned problems with this encoded string:
=?utf-8?Q?=D7=93=D7=99=D7=90=D7=92=D7=95_=D7=99=D7=A1?= - which decodes (partly) to my name in Hebrew. Yes, its an RTL but it is something that you should not deal with (its a display issue only).

Take this string for example: =?UTF-8?B?15TXldeT16LXlCDXotecINeQ15kg15TXoteR16jXqiDXqtep15zXlQ==?= =?UTF-8?B?150g16rXp9eV16TXqteZINeR16rXm9eg15nXqiDXnNep15vXmdeo15nXnQ==?= it contains a space, which means you need to start decoding and append the value to the previously decoded string. It should decode to :
הודעה על אי העברת תשלום תקופתי בתכנית לשכירים

(at least on my code, see https://github.com/elcuco/rfcpp/blob/1e15786aa5747039e3d23d516888ebe1277ed41c/rfcpp/rfc2047.cpp#L158 )

Do you have some kind of unit test for these kind of messages? Would you like a "test application" to verify these low level APIs?

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

1 participant