Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 08:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#] Random '?' on Console.WriteLine()

Discussion on [C#] Random '?' on Console.WriteLine() within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
const*'s Avatar
 
elite*gold: 0
Join Date: Mar 2015
Posts: 776
Received Thanks: 313
[C#] Random '?' on Console.WriteLine()

Hello,

I am encountering having this little problem, I am experienced, but I never had this kind of problem, is that just a simple mistake? A silly one? I dont know:

I simply want to give out a text via Console.WriteLine, but it adds a random "?" on the start of the line:

Code:
?Path:
should be

Code:
Path:
Code:

Code:
Console.Title = "Hotfix";
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Path: ");
string s = Console.ReadLine();

            Console.WriteLine(new String('-', Console.WindowWidth));
...?
const* is offline  
Old 03/30/2015, 21:43   #2
 
elite*gold: 15
Join Date: Aug 2012
Posts: 3,041
Received Thanks: 6,397
try this, its almost always the case. If it doesn't work also try the UTF8.
Code:
Console.OutputEncoding = System.Text.Encoding.Unicode
Also make sure you don't have any weird Console.Write() before the "path:".
berkay2578 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Released] Monster legends (Random Gold) (Random Food) (Random Exp)
02/03/2015 - Facebook - 6 Replies
Monster legends New Tools !! *1 - Random Gold *2 - Random Food *3 - Random Exp All Tested And Working 100% Without Any Problem :handsdown: !!! Link
[Release] Monster legends (Random Gold) (Random Food) (Random Exp)
02/03/2015 - Dragon City - 5 Replies
Monster legends New Tools !! *1 - Random Gold *2 - Random Food *3 - Random Exp All Tested And Working 100% Without Any Problem :handsdown: !!! Link
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold
01/24/2015 - Dragon City - 25 Replies
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold Dragon City Gem + Gold + Food +Exp



All times are GMT +1. The time now is 08:54.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.