It is currently April 27th, 2024, 3:02 pm

Displaying Degrees Symbol °

Get help with creating, editing & fixing problems with skins
User avatar
Kolano
Posts: 24
Joined: October 23rd, 2015, 11:54 pm

Displaying Degrees Symbol °

Post by Kolano »

When attempting to use the degrees symbol (°) in a String meter...

Code: Select all

[MeterCPUCore1Text]
Meter=String
MeterStyle=Style
MeasureName=MeasureCPUTempCore1
MeasureName2=MeasureCPUClock1
Text=Core 1: %2Ghz %1° C
Y=(-#GraphHeight# / 4)r
...it's displayed with an A with circumflex (Â) before it. So displayed text looks like "Core 1: 5528Ghz 23° C.
User avatar
Brian
Developer
Posts: 2686
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Displaying Degrees Symbol °

Post by Brian »

User avatar
Kolano
Posts: 24
Joined: October 23rd, 2015, 11:54 pm

Re: Displaying Degrees Symbol °

Post by Kolano »

Thanks, hadn't realized the need to save to UTF 16 LE.
User avatar
balala
Rainmeter Sage
Posts: 16176
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Displaying Degrees Symbol °

Post by balala »

Definitely have to encode the files as UTF-16LE, this is for sure, however instead of using the degree character in your codes (°) you can use this: [\x00B0] (Text=Core 1: %2Ghz %1[\x00B0] C).
This way you get as well a character of degree.