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

Question: How is unicode handled? #36

Open
frippe75 opened this issue Aug 20, 2020 · 1 comment
Open

Question: How is unicode handled? #36

frippe75 opened this issue Aug 20, 2020 · 1 comment

Comments

@frippe75
Copy link

Sorry, rather a question than an issue.

Looked at the format of asciinema v2 which looks to be utf8-unicoded.
"it's UTF-8 encoded JSON string, with all non-printable Unicode codepoints encoded as \uXXXX"

Looked thru the code to figure out how this is handled and passed to xterm.write that seems to expect utf16.
If you could point out where this is dealt with I would really appreciate it!

@JavaCS3
Copy link
Owner

JavaCS3 commented Sep 2, 2020

@frippe75 I'm sorry I mat not be able to answer your question. You may need to check xterm.js source code to find the answer or ask questions in gitter room. BTW, What kind of scenario you're meeting that makes you need to figure out how unicode is handled?

Just quickly checked xterm.js source code, I think the answer can be found at here.

https://github.com/xtermjs/xterm.js/blob/60419a7cc6edf46852394119401927f45c46a515/src/common/InputHandler.ts#L481-L484

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

2 participants