It is currently September 20th, 2019, 10:40 am

Degree Symbol Issue

Help with creating, editing & fixing problems with skins
ms310
Posts: 101
Joined: April 1st, 2015, 7:16 am

Degree Symbol Issue

ms310 » May 29th, 2019, 4:45 am

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: 8626
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Degree Symbol Issue

balala » May 29th, 2019, 6:42 am

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: 101
Joined: April 1st, 2015, 7:16 am

Re: Degree Symbol Issue

ms310 » May 29th, 2019, 8:12 am

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: 8626
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Degree Symbol Issue

balala » May 29th, 2019, 8:27 am

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: 211
Joined: July 30th, 2014, 10:30 am

Re: Degree Symbol Issue

Pul53dr1v3r » May 29th, 2019, 10:10 am

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: 101
Joined: April 1st, 2015, 7:16 am

Re: Degree Symbol Issue

ms310 » May 29th, 2019, 10:06 pm

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: 8626
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Degree Symbol Issue

balala » May 30th, 2019, 6:04 am

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.