-
Notifications
You must be signed in to change notification settings - Fork 87
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
Fix #152: encoding name of addresses in utf-8 #166
base: master
Are you sure you want to change the base?
Conversation
var splitData = split(convert.utf8.encode(value), availableLength); | ||
var second = false; | ||
for (var d in split(convert.utf8.encode(value), availableLength)) { | ||
if (second) yield _$eolSpace; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was there a bug in my code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I just refactored it a bit so I can reuse some code and constants.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find the yield _$eolSpace
in my old code.
But your refactoring looks good to me. (If it was in my code good. If not it will be added by your code)
LGTM Do you want me to wait for a 2.12 version? The null safety version would have been a perfect opportunity to change the interface. |
Please upgrade it to 2.12. |
Will do. |
@close2 I fixed #152 by encoding name to utf-8+base64.
Note:
Address.sanitizedName
andsanitizedAddress
for application to override (which I need it).Address
'sname
andmailAddress
as final, soconst Address
is possible.const
to make the code a bit more efficient.Item 2 and 3 are not necessary. If you don't like it you can revoke it.