It is currently October 18th, 2024, 9:19 am

Problema com Caracteres Especiais

Get help with installing and using Rainmeter.
luisinn
Posts: 3
Joined: May 21st, 2024, 7:14 pm

Problema com Caracteres Especiais

Post by luisinn »

I am facing an issue with the display of special characters (such as "ç", "á", "é", etc.) in a Rainmeter skin. I am using a font that supports these special characters, but they are still not displayed correctly.

Solutions Attempted:
UTF-8 Encoding
Font Verification
Configuration File Update
Log Verification

Example of the Problem:
Terã§a-Feira, 21 de maio

Current Configuration:

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
DefaultTextEncoding=UTF-8
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] 
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.1 ? 0.1 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.1 ? 0.1 : #Scale#-#ScrollMouseIncrement#)"][!Refresh] 
;LeftMouseDoubleClickAction=!ToggleConfig "Lasix\Settings" "Settings.ini"

[Metadata]
Name=
Author=
Information=
License=
Version=



[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
Scale=0.2

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureHours]
Measure=Time
Format="%H"

[MeasureMinutes]
Measure=Time
Format="%M"

[MeasureDate]
Measure=Time
Format="%A, %d de %B"
Substitute="Monday":"segunda-feira","Tuesday":"terça-feira","Wednesday":"quarta-feira","Thursday":"quinta-feira","Friday":"sexta-feira","Saturday":"sábado","Sunday":"domingo","January":"janeiro","February":"fevereiro","March":"março","April":"abril","May":"maio","June":"junho","July":"julho","August":"agosto","September":"setembro","October":"outubro","November":"novembro","December":"dezembro"

;-------------------------------------------------------------
;-------------------------------------------------------------

[Meter24h]
Meter=String
MeasureName=MeasureHours
MeasureName2=MeasureMinutes
StringAlign=Center
StringCase=Upper
FontFace=VPPixel-Hi-Res
FontColor=255,255,255
FontSize=(320*#Scale#)
X=(1300*#Scale#)
Y=(500*#Scale#)
Text="%1:%2"
InlineSetting=CharacterSpacing | 2 | 2
AntiAlias=1
Hidden=0

[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Center
StringCase=Upper
FontFace=VPPixel-Hi-Res
FontColor=255,255,255
FontSize=(60*#Scale#)
X=(1300*#Scale#)
Y=(1100*#Scale#)
Text="%1"
InlineSetting=CharacterSpacing | 0 | 0
AntiAlias=1
;-------------------------------------------------------------
;-------------------------------------------------------------
Any help would be greatly appreciated :)
Last edited by SilverAzide on May 22nd, 2024, 1:55 am, edited 4 times in total.
Reason: Please use code tags when posting code. It is the </> button.
User avatar
balala
Rainmeter Sage
Posts: 16669
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Problema com Caracteres Especiais

Post by balala »

Post your question in English, please.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5543
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Problema com Caracteres Especiais

Post by eclectic-tech »

Your code works fine for me using Rainmeter's default font (Arial)...
utf8.jpg
Dafont says: "This font is a DEMO version free for personal use. It is fully functional but limited to only one style and only the basic characters."
Did you buy the version of VP Pixel with the extended characters?
You do not have the required permissions to view the files attached to this post.
luisinn
Posts: 3
Joined: May 21st, 2024, 7:14 pm

Re: Problema com Caracteres Especiais

Post by luisinn »

eclectic-tech wrote: May 21st, 2024, 9:11 pm Your code works fine for me using Rainmeter's default font (Arial)...
utf8.jpg

Dafont says: "This font is a DEMO version free for personal use. It is fully functional but limited to only one style and only the basic characters."
Did you buy the version of VP Pixel with the extended characters?
So, I did not buy an extended character version, but in my case, the problem isn't just that. In the Notepad, if I change the font to the one in question, "terça" appears correctly. I believe the issue is with the display itself, as it happens even with the default font.
User avatar
KazukiGames82
Posts: 44
Joined: January 25th, 2023, 2:56 am

Re: Problema com Caracteres Especiais

Post by KazukiGames82 »

luisinn wrote: May 22nd, 2024, 12:15 am I believe the issue is with the display itself, as it happens even with the default font.
Change the encoding of the file from UTF-8 to UTF-16 LE :great:
https://docs.rainmeter.net/tips/unicode-in-rainmeter/
luisinn
Posts: 3
Joined: May 21st, 2024, 7:14 pm

Re: Problema com Caracteres Especiais

Post by luisinn »

KazukiGames82 wrote: May 22nd, 2024, 1:59 am Change the encoding of the file from UTF-8 to UTF-16 LE :great:
https://docs.rainmeter.net/tips/unicode-in-rainmeter/
It worked, thank you very much :D