'Batch file message popup, how to insert emoji?

Write like this

msg * "My emoji 😁"

But on popup I get msg * "My emoji (random symbols)"

How to write a specific emoji for batch file popup on windows 10?



Solution 1:[1]

Based from the Mofi's comment, you should change the code page to 65001 and the batch file will be saved as UTF-8

@echo off
chcp 65001>nul
Title Emoji ?
msg * "My emoji ?"
pause

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hackoo