D
D
Daniel Demidko2018-06-06 07:48:09
.NET
Daniel Demidko, 2018-06-06 07:48:09

How to output a unicode character?

5b1767861c12e079175123.jpeg
I'm trying to display the unicode character of the car https://emojipedia.org/automobile/
I set the unicode encoding (UTF16)
But the console still displays krakozyabry. Tried changing the font, didn't help. How to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Mirilaczvili, 2018-06-06
@2ord

Possible causes:
The console input font is not set to Unicode.
U+1F697 is out of character limits when displayed on the console in this font.
https://stackoverflow.com/a/10765469

D
d-stream, 2018-06-06
@d-stream

In the console, execute chcp /? I think everything will be clear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question