You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that a literal underscore (ASCII 95) _ is left as-is, meaning that a space (ASCII 32) and underscore are indistinguishable in the Q-encoded result.
Example:
var q = require("q-encoding")
var utf8 = require('utf8');
q.encode(utf8.encode("❤️ Hello _it's _me"));
It appears that a literal underscore (ASCII 95)
_
is left as-is, meaning that a space (ASCII 32) and underscore are indistinguishable in the Q-encoded result.Example:
Expected result:
Observed result:
Further example:
Result:
RFC 2047 4.2(3) notes
So
_
is a special purpose character in the encoding (representing a space), so a literal_
needs to be encoded as if it were non-ASCII.The text was updated successfully, but these errors were encountered: