We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import Encoding from 'encoding-japanese'; const bs = Buffer.from(new Uint8Array([0x08])); console.log('detect("<BS>"):', Encoding.detect(bs)); const utf8str = Buffer.from("UTF8の文字列です", 'utf8'); console.log('detect("UTF8の文字列です"):', Encoding.detect(utf8str)); const utf8BS = Buffer.concat([utf8str, bs]); console.log('detect("UTF8の文字列です<BS>"):', Encoding.detect(utf8BS));
output:
detect("<BS>"): ASCII detect("UTF8の文字列です"): UTF8 detect("UTF8の文字列です<BS>"): UNICODE
I think the final result can be "UTF8" because UTF-8 includes ASCII.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
output:
I think the final result can be "UTF8" because UTF-8 includes ASCII.
The text was updated successfully, but these errors were encountered: