It is currently April 19th, 2024, 2:26 pm

Degree Symbol Issue

Get help with creating, editing & fixing problems with skins
ms310
Posts: 225
Joined: April 1st, 2015, 7:16 am

Degree Symbol Issue

Post by ms310 »

Hello

Please see the attached image. I took the code that displays the degree symbol from the large text and copy/pasted it into the code for the small text. As you can see it prints out a funny A and the degree symbol. Strange.

I am using Sublime Text which is usually well behaved. I tried several fonts and even made the small text the same font as the big text, same result.

Any hints here? Why would one work and not the other? I feel like I am always chasing this issue and somehow eventually it resolves itself without me understanding what happened.

Thanks for the help!
2019-05-29_13h39_35.png
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Degree Symbol Issue

Post by balala »

ms310 wrote: May 29th, 2019, 4:45 am I took the code that displays the degree symbol from the large text and copy/pasted it into the code for the small text. As you can see it prints out a funny A and the degree symbol. Strange.
Try this: https://forum.rainmeter.net/viewtopic.php?f=5&t=30807&p=162121&hilit=degree#p162121
Accordingly you should have to modify the Text option this way: Text=%1 [\x00B0]#UnitTemp#. The [\x00B0] string will be replaced with a degree symbol.

Additional tip: don't include none of the options into quotation marks. That's why I didn't wrote the above option as Text="%1 [\x00B0]#UnitTemp#". Those quotation marks are simply not needed: https://forum.rainmeter.net/viewtopic.php?f=5&t=26350&p=137628&hilit=quote+enclose+option#p137628
ms310
Posts: 225
Joined: April 1st, 2015, 7:16 am

Re: Degree Symbol Issue

Post by ms310 »

balala wrote: May 29th, 2019, 6:42 am Try this: https://forum.rainmeter.net/viewtopic.php?f=5&t=30807&p=162121&hilit=degree#p162121
Accordingly you should have to modify the Text option this way: Text=%1 [\x00B0]#UnitTemp#. The [\x00B0] string will be replaced with a degree symbol.

Additional tip: don't include none of the options into quotation marks. That's why I didn't wrote the above option as Text="%1 [\x00B0]#UnitTemp#". Those quotation marks are simply not needed: https://forum.rainmeter.net/viewtopic.php?f=5&t=26350&p=137628&hilit=quote+enclose+option#p137628
Sorry for the previous post (I deleted it) - thank you - works perfectly.
2019-05-29_17h09_10.png
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Degree Symbol Issue

Post by balala »

ms310 wrote: May 29th, 2019, 8:12 am works perfectly.
Are you sure? Because I don't see it would:
2019-05-29_17h09_10.png
You do not have the required permissions to view the files attached to this post.
User avatar
pul53dr1v3r
Posts: 442
Joined: July 30th, 2014, 10:30 am

Re: Degree Symbol Issue

Post by pul53dr1v3r »

also, you can save the file with encoding -> UTF-16 LE in Sublime text editor to fix any further issue with the charactears:

Image

or in the way balala used searching for the character code you want using UTF-8 (hex) or UTF-16 (hex) encoding method and using it in a Rainmeter .ini file in this form: [\x UTF code].
ms310
Posts: 225
Joined: April 1st, 2015, 7:16 am

Re: Degree Symbol Issue

Post by ms310 »

balala wrote: May 29th, 2019, 8:27 am Are you sure? Because I don't see it would:
2019-05-29_17h09_10.png
Sorry - I updated the image but perhaps you have a cached copy. The new image in the post has the correct symbol.

Thanks for your help.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Degree Symbol Issue

Post by balala »

ms310 wrote: May 29th, 2019, 10:06 pm The new image in the post has the correct symbol.
Right, now i see it. I'm glad you got it working.