
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
How to print Unicode character in C++?
To print the Unicode characters, the process is very similar to the actual printing process in C++.
We can put the Unicode value with the prefix \u. Thus we can successfully print the Unicode character.
Note: If the console does not support Unicode, then you cannot get the correct result. Here we have used the Linux system to solve this problem.
Example
#include <iostream> using namespace std; int main() { cout << "Character: \u092E\n"; cout << "Character: \u0938\n"; cout << "Character: \u0915\n"; }
Output
Character: म Character: म Character: म
- Related Articles
- How to fetch character from Unicode number - JavaScript?
- How to convert an integer to a unicode character in Python?
- How to find the unicode category for a given character in Java?
- Check whether the Unicode character is a separator character in C#
- How to return a number indicating the Unicode value of the character?
- PHP – How to return character by Unicode code point value using mb_chr()?
- PHP – How to get the Unicode point value of a given character?
- How do I print Unicode characters in the console using JavaScript?
- Unicode Byte Order Mark (BOM) character in HTML5 document.
- Java Program to determine a Character's Unicode Block
- Match Unicode character specified by the hexadecimal number XXXX.
- Indicate whether the specified Unicode character is white space in C#
- Check whether the Unicode character is a lowercase letter in C#
- Convert the value of the specified string to its equivalent Unicode character in C#
- Check whether the specified Unicode character is a punctuation mark in C#

Advertisements