It is currently June 20th, 2019, 3:48 am

How to write accute charactres

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

How to write accute charactres

matheustsa » January 14th, 2018, 4:39 pm

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

matheustsa » January 14th, 2018, 4:42 pm

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: 19265
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to write accute charactres

jsmorley » January 14th, 2018, 4:52 pm

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

matheustsa » January 14th, 2018, 5:46 pm

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!