Reputation: 2594
I wanted to print symbols in dart language using only Unicode something like U+20B9 and not escape sequence(\u20B9). I am used below dart code. Is there any way to print the symbols using only Unicode?I am using Unicode from this website https://www.rapidtables.com/code/text/unicode-characters.html
void main(){
print('\u20B9');//escape sequence
print("U+20B9");//Unicode
}
output
₹
U+20B9
Upvotes: 0
Views: 938