Why won't my console display the copyright symbol ©? - windows-8

I am trying to write a C# console application the displays the copyright symbol ©. According to this StackOverflow answer that should be possible. However, on my Windows 8 console display I get the lowercase letter c printed out. What could be wrong?

Found the solution. Add this before your Console.WriteLine commands:
Console.OutputEncoding = Encoding.UTF8;
That same sample you linked to works if I do that.
Credit for the solution: How to make console be able to print any of 65535 UNICODE characters
Marking this as community wiki since I'm not really the one who knew the answer.

Are you using a custom font for your console? If so, that font may not have support for the (c) character.

Related

Crystal report - export to pdf with unknown language

who can help me why i got the report as picture when i view report or export to PDF, i don't know why the report has dots and question mark under words. It should be English. I run on server and client also got this problem. If I export to MS Words or another format then this problem disappear.
Please help me to advise why this problem appear.
According to me,crystal reports supports only True Type fonts.
Check link to understand the difference between both the fonts
(description).
The font you are using may be a Open type font, that CR doesnt support. Just for testing try using a True type font and see if PDF prints, if it doesnt then the problem may not be fonts, and may be somewhere else.
PDF export uses your default PC language. So, set your machine language and everything should be printed in that language.

How to disable code formatting for copyright notice

How can I manage to prevent the intellij-formatter to destroy my copyright notice, every time it tidies up my source code? The copyright comes from a template and starts with the first line of my source files, so there is no formatter-on/off option.
Well, crawling the topics I find a lot of (useful) information on how to disable formatting for specific regions of your source. But when it comes to copyright there's lack of information, though. I do not want to disable javadoc-formatting, there should be another solution out there. Any ideas on this?
There is a setting Generate "<p>" on empty lines under
Settings > Editor > Code Style > Java > JavaDoc > Other
Uncheck the checkbox.
use something like this:
//#formatter:off
your code / copyright
//#formatter:on
between off and on the code/copyright should be skipped for formatting
//#formatter:off deactivates the formatter
//#formatter:on activates the formatter again
You could try out the Copyright plugin.
https://plugins.jetbrains.com/plugin/88?pr=
It should be able to preserve your copyright notice at the top of your source files, and also apply it to new files or to existing files that are missing the notice on-the-fly whenever you reformat or check in a file.
While I was not able to preserve the proper layout with block comments, i figured out another suitable solution:
I used line comment formatting for the copyright header.
Thank you guys for your quick suggestions!

Code::Blocks crashes on Run Project

I created a project from the "GLFW project" template in CodeBlocks 13.12 and hit F8 to run it. That's all. And what I got is an error as follows:
Cross-platform IDE built around wxWidgets, designed to be extensible and configurable. has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
(it's using CB's description "Cross-platform ..." as its name here, apparently)
Any ideas?
The path to my project had some Cyrillic characters in it. I fixed it to consist of Latin characters only and the crash went away.
This bug appears also when the path contains Romanian characters like: ă â î ș ț. If anyone sees this answer, just make sure your path contains only Latin characters.

ActiveReports 7 Section Document Printing All Blank

I'm using ActiveReports 7 PRO and cannot get the reports to print correctly. It sends the document to the printer however it's all blank. I'm needing to print a bunch of reports in a loop so I'm looking to do this all programmatically. Here's the code I'm currently using after the DataSource is set, etc:
rptPT.Run(True)
rptPT.Document.Printer.Print()
I can't seem to load it into a viewer in the loop and print it that way (nor do I want to) because it tells me that the report has not been loaded fully. Like I said, it prints, however it's just a blank page with nothing on it. Also: if I export it to a PDF everything is fine in the PDF document.
Thanks!
Please refer to the following forum post wherein similar issue has been discussed and resolved :
http://our.componentone.com/groups/topic/printing-blank-pages-2/
See if this helps.
Regards,
Mohita

characters missing when printing

We have a WPF application which can perform either a report preview or a report print.
Both requests use the same code.
Call the report service which gets the report from Microsoft Report Services.
Convert the report into the desired format (in this case PDF).
Then return the report as a byte array.
The result is then written to a temporary file as a binary stream, and either popped into a window to preview or start a Process to print.
In both cases the temporary file is passed.
Print Preview works flawlessly! But Print Report will print with all occurances of 'ti' disappearing. I see there is a printer escape sequence of ESC t NUL/SOH and I assume that if, for some reason, an escape character gets into that stream that ti will result in an ignored print sequence. Thus the missing characters.
My first question is if anyone has ever experienced this with generated PDF reports?
My second question (obviously) is if anyone knows of a utility I can use to view the binary data in the file being printed, to see what is in the file just before every 'ti' sequence?
After a great deal of searching I came across a post on the Adobe forum that states that version 8 had a bug where it was not printing character combinations. Once I dug deeper it seems that it has returned and the suggested workaround fixed our issue.
Workaround: Do a print as image.
Adobe seems to be unable to do the most basic of what their software must do, print the exact content!
Answer for your second question:
First, do one of the following two things:
Set the Windows print spooler properties to not delete printed jobs.
Pause the target print queue.
Then, grab the spool file from the Windows printspool directory (which location that is you can find out by looking at the (right-click) 'Properties...' dialog of the 'Printers and Faxes' folder).
I realize this is an old post but I wanted to add some updated info from the above comment stating that it's a problem with Acrobat 8. We are using Acrobat 10.1.6 and still have the same problem. From what I've read, it's a problem with the adobe product itself. The only real fix I've seen (actually work around) is to print as an image. LAME
Surprisingly this bug is still there in 2021. Adobe cannot be relied upon printing documents properly. This takes away all the allure of features it had if it cannot do the most basic stuff it is required for.
Printing as image reduces the quality and blur the document.
Simply open the document with Safari or Chrome and print from there. E
I had a similar problem while printing directly from the firefox (acrobat reader within). I downloaded the file and then printed. The problem was solved.