claude-3.5-sonnet and claude-3-5-sonnet-20241022 output the wrong code, ������������, how can I fix this code?

Would you be able to do the following:

  1. disable privacy mode (if enabled) in cmd+shift+j > Privacy Mode
  2. Make a request where this happens, then log the request id with cmd+shift+p > report ai action > select the chat output > copy

and send the request id here

It seems to be an issue with emojis, which is also discussed here: