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

Summary: degree/grade symbol error
Product: SDL_ttf Reporter: Andrea <serra82>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann
Version: 2.0.12   
Hardware: All   
OS: Linux   

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.