Archive for the ‘unicode’ Category
Visual c# 2008 Hello (Unicode) World (Hexidecimal)…
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
ConsoleTitle();
Greeting();
}
static void Greeting()
{
string strHello = “\u0048\u0065\u006C\u006C\u006f\n”;
// Unicode of Hello
string strWorld = “\x77\x6F\x72\x6c\x64\x21\b”;
// Hexidecimal of world
Console.Write(“{0}”, strHello);
Console.Write(“{0}”, strWorld);
Console.ReadLine();
}
static void ConsoleTitle()
{
string strTitle = “Hello(Unicode) World(Hexidecimal) v0.01”;
Console.Title = strTitle;
}
}
}