xzel23 commented on PR #582:
URL: https://github.com/apache/poi/pull/582#issuecomment-1925449684
This demonstrates the problem:
```
jshell> "𠜎𠜱𠝹𠱓𠱸𠲖𠳏!".toCharArray()
$8 ==> char[15] { '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',
'?', '?', '?', '!' }
jshell> "𠜎𠜱𠝹𠱓𠱸𠲖𠳏!".codePoints().toArray()
$9 ==> int[8] { 132878, 132913, 132985, 134227, 134264, 134294, 134351, 33 }
```
Iterating over characters as you do will create a stream consisting of 15
Strings whereas the correct result should have only 8.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]