Skip to content

Conversation

@beraadim
Copy link

@beraadim beraadim commented Jun 16, 2021

  1. Add support for UTF16. Detect the encoding by looking for the byte order mark at the start of the incoming buffer and save this as encoding for the rest of the incoming chunks. (https://en.wikipedia.org/wiki/Byte_order_mark) - other encodings could probably also be detected. Note: the encoding for the incoming chunk will be "buffer", so no use of using this as encoding when converting to string.
  2. trim the name of the opening tag end the closing tag. Failed corner case found when tag is written as "<TagName >". the space between the tagname and end bracket '>' is emitted as the full tag name

beraadim added 2 commits June 16, 2021 23:52
1. Add support for UTF16. Detect the encoding by looking for the byte order mark at the start of the incoming buffer and save this as encoding for the rest of the incoming chunks. (https://en.wikipedia.org/wiki/Byte_order_mark) - other encodings could probably also be detected. Note: the encoding for the incoming chunk will be "buffer", so no use of using this as encoding when converting to string.
2. trim the name of the opening tag end the closing tag. Failed corner case found when tag is written as "<TagName >". the space between the tagname and end bracket '>' is emitted as the full tag name
Added proper support for utf16 big endian
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.

1 participant