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

Added support for UTF16 #204

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

ocitrev
Copy link

@ocitrev ocitrev commented Jun 27, 2019

This PR adds basic UTF16 encoding support
This fixes issue #202

encoding.go Outdated Show resolved Hide resolved
encoding.go Outdated Show resolved Hide resolved
Turns out SketchUp files have a UTF16-LE BOM.

```
FF FE FF 0E 53 00 6B 00 65 00 74 00 63 00 68 00  .þ..S.k.e.t.c.h.
55 00 70 00 20 00 4D 00 6F 00 64 00 65 00 6C 00  U.p. .M.o.d.e.l.
```

Added check for an invalid uncode code point.
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.

None yet

1 participant