xml escape sequence emoji characters RRS feed

  • Pergunta

  • User pastes some text containing emojis like "Hi 🙂".

    I need to send this as part of utf 8 xml to a web service. 

    How to find and replace emoji characters with their escape sequences. Sending XmlWriter utf-8 encoding resulted text is giving error.

    Thank you.

    quarta-feira, 6 de novembro de 2019 23:31

Todas as Respostas

  • Hi sbprasadrao,

    To handle the issue, you should convert emoticons to its Unicode.

    Here I find some similar issues that you can refer to.

    [How to convert emoticons to its UTF-32/escaped unicode?].

    [How can I put a 💙, or any other emoji inside an XML string?].

    About escape sequences, you can find in this document.

    [Full Emoji List, v12.1]

    Best Regards,
    Daniel Zhang

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    quinta-feira, 7 de novembro de 2019 07:00