-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improper Display of °(Degree Symbol) #61
Comments
Hi. That's really odd - when I run your program it outputs fine (see attached). The diff shows only a single change of interest (excluding xref/header stuff):
Looking at the binary output, the unknown symbol in my one is 0xb0, but in yours it is two symbols, 0xc2 then 0xb0. I don't entirely understand what is going on here. I think there is an extra character in your file - it is utf-8 encoded? The degrees symbol should just be 0xb0 I think (https://en.wikipedia.org/wiki/Degree_symbol) |
Ok, I see what happened. The raw UTF-8 has gone through into the PDF output in your code, but in mine it has been translated down to just the single character. Are you running the most recent code, with the
|
Hi..! I'm running the latest code at onlineGDB for now. You can see the results at the following link |
I can't seem to download the output files from onlinegdb.com. Can you tell if the 0xc2 symbol is still present in the output? It shouldn't be (the 'consumed 2' line means that two utf-8 characters were absorbed, and the output was only 0xb0, which means it should be put into the PDF as a single character). |
I made a fork of your project, https://onlinegdb.com/B1RB27HCI, and added a hex dump of the output. In that project, the 0xc2 does not seem to be appearing in the final PDF file:
Can you confirm if you run that project on your local machine whether it works ok? |
Hi Andre! Then I tried to run this code on my local machine on Visual Studio Code. And the issue is resolved, it's working fine on local machine. So, is it the problem of onlineGDB which adds extra character? |
Hi, |
Hi, You can observe the output file by clicking on download code in your forked project on onlineGDB. I'm still getting extra character there in the output pdf. |
I believe this issue is resolved with the latest code, but feel free to reopen this if that is not the case. |
Hi Andre,
As I have to show temperature let's say 27°C, it's resulting as 27A°C in the PDF. I opened pdf using MAC Preview and Adobe Reader, but same results.
This problem also occurs with special characters as well.
please take a look at the main code and output.
Thanks
output2.pdf
main.c.txt
The text was updated successfully, but these errors were encountered: