nvartolomei commented on issue #2123:
URL: 
https://github.com/apache/iceberg-python/issues/2123#issuecomment-2995265399

   @kevinjqliu if you’ll use this sanitization function on emojis, in 
particular on a 4 byte one, the Python and Java implementation will encode the 
field names differently. That’s because Python encodes the whole utf-8 point at 
a time where’s Java will encode it as 2 2-byte chars (it uses utf-16 internally 
so 16 byte chars). Can this break anything?
   
   For 😎
   
   - Java encodes one UTF-16 char at a time: `_xD83D_xDE0E`.
   - Python encodes 4 bytes at a time: `_x1F60E`.


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to