TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bwana Lawi
NA
2
413
Printing unicode to console in C# - VS 2017
Sep 16 2017 7:56 AM
I can't get the console to print unicode characters using the Console.WriteLine or Console.Out.WriteLine
Searching the net, I got 2 suggestions for setting the encoding:
Console.OutputEncoding = Encoding.UTF8;
// Option 1 for setting encoding
Console.WriteLine(
"Smiley face: ????"
);
Console.OutputEncoding = System.Text.Encoding.UTF8;
//Option 2
Console.WriteLine(
"Smiley face: ????"
);
Problem is that both these approaches give the same error below:
Smiley face: ????
Exception thrown: 'System.IO.IOException' in mscorlib.dll
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
The handle is invalid.
I have changed the console font to Lucida Console but still the unicode characters are not being printed
Environment:
IDE: VS Community version, 2017, Version 15.3.4
Windows 10
Reply
Answers (
2
)
Class are not read in webservice Please Help me guys
when i click comments button than more comments are add