We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2278 - degree/grade symbol error
Summary: degree/grade symbol error
Status: RESOLVED INVALID
Alias: None
Product: SDL_ttf
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.12
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-01 17:31 UTC by Andrea
Modified: 2020-02-06 06:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea 2013-12-01 17:31:35 UTC
I'm using SDL2_ttf-2.0.12, if I try to render grade simbol the result have an A before the grade. For example if I want 12° the result is 12A°.
Is a my error or is a bug?
thank you
Andrea
Comment 1 Philipp Wiesemann 2015-10-14 20:52:45 UTC
Maybe the input string was not encoded in UTF-8.
Comment 2 Sam Lantinga 2017-09-10 05:52:44 UTC
Can you attach a simple C program that shows the problem?

Thanks!
Comment 3 Sam Lantinga 2020-02-06 06:14:00 UTC
You're using TTF_RenderText* functions, which take latin1 input. You should use the TTF_RenderUTF8* functions, which interpret the input correctly.