Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# text to ascii

string text = "Here's some text including a u00ff non-ASCII character";
foreach (char c in text)
{
    int unicode = c;
    Console.WriteLine(unicode < 128 ? "ASCII: {0}" : "Non-ASCII: {0}", unicode);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #text #ascii
ADD COMMENT
Topic
Name
9+5 =