I'm learning at a nice pace right now trying to rekindle what I almost forgot in programming. Right now I'm re-reviewing the basics of C# coding and I came across an interesting subject on ascii and unicode. The instructor, who I'm learning from online of course, mentioned you can make symbols with either. So I figured, heck yeah I'll do that. I wanted to make a symbol, in Console while using C# with Visual Studio, that shows a capricorn symbol, followed by a heart, and a gemini symbol. Basically saying I (the Capricorn) love(the heart) my girlfriend (The Gemini) using symbols. I assumed it was unicode. However, when I do try to write the line, I get boxes with question marks on all accounts. Here is my code:
using System;
using System.Text;
class EntryPoint
{
static void Main()
{
Console.InputEncoding = Encoding.UTF8;
Console.OutputEncoding = Encoding.UTF8;
//Changes the input and output of the console's encoding
char theGeminiCharacter = '\u264A';
char theCapricornCharacter = '\u2651';
char theHeartCharacter = '\u2764';
string freeSpace = " ";
//Can't seem to find the right unicode process to make the zodiac signs.
Console.WriteLine(theCapricornCharacter + freeSpace + theHeartCharacter + freeSpace + theGeminiCharacter);
}
}
So, what am I doing wrong here? Is it even supposed to be unicode or is there some other code type? I've heard of Alt+X but I didn't really understand it. Thanks in advance!