ashtuchkin / iconv-lite

Convert character encodings in pure javascript.
MIT License
3.08k stars 282 forks source link

fix : check the chunk boundaries for surrogate pair #275

Closed yosion-p closed 3 years ago

ashtuchkin commented 3 years ago

Hmm I'm actually not sure what are you trying to achieve here? The new test ("Encoding using internal modules: utf8 with surrogates in separate chunks") is OK, but to make it work, we need to change the library itself (i.e. adjust the utf8 codec), not adjust back the inputs into a single chunk in the formatSurrogate function in tests.

yosion-p commented 3 years ago

sorry,>﹏< I haven't found anything to change before,I'll try again in the future.