Page 1 of 1

How to write accute charactres

Posted: January 14th, 2018, 4:39 pm
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!

Re: How to write accute charactres

Posted: January 14th, 2018, 4:42 pm
by matheustsa
And by the way, if someone need help translating something to pt-br, I'll be happy to help :welcome:

Re: How to write accute charactres

Posted: January 14th, 2018, 4:52 pm
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/

Re: How to write accute charactres

Posted: January 14th, 2018, 5:46 pm
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!