It is currently March 28th, 2024, 11:26 am

How to write accute charactres

Discuss the use of Lua in Script measures.
Post Reply
matheustsa
Posts: 3
Joined: January 14th, 2018, 4:25 pm
Location: BRASIL

How to write accute charactres

Post by matheustsa »

Hello, everyone!

I'm pretty new to lua scripting (started yesterday, to be exact kk), and while trying to translate/create some os my skins I got stuck into a problem that seems to be simple, but I find no solution anywhere.

How can I write accute characters!?!?!?!?
I'm Brazilian, and a lot of our words have accute characters like "ÁáÉéÍíÓóÚú", and in the skins they become something like "oÃcÃÃÃ"óÃsú".

Thanks in advance!
matheustsa
Posts: 3
Joined: January 14th, 2018, 4:25 pm
Location: BRASIL

Re: How to write accute charactres

Post by matheustsa »

And by the way, if someone need help translating something to pt-br, I'll be happy to help :welcome:
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to write accute charactres

Post by jsmorley »

In general, you want both your skin .ini / .inc files and your Lua .lua files to be encoded as UTF-16 Little Endian in your text editor.


Unicode (Windows Notepad.exe)
UCS-2 LE BOM (Notepad++)
UTF-16 LE (Sublime Text)

https://docs.rainmeter.net/tips/unicode-in-rainmeter/
matheustsa
Posts: 3
Joined: January 14th, 2018, 4:25 pm
Location: BRASIL

Re: How to write accute charactres

Post by matheustsa »

I knew it was simple, but didn't expect to be that much... :headbang: :oops:

It's time to stop coding and sleep kkk

Thanks bro!
Post Reply