Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: BigBrainAFK on April 16, 2015, 03:06:10 AM

Title: GMod UTF-8
Post by: BigBrainAFK on April 16, 2015, 03:06:10 AM
Hello,

i just wanted to ask if there is a way to change GMod Lua to utf-8 so that i can put ä,ö,ü and stuff like that into my Strings.
Title: Re: GMod UTF-8
Post by: Livaco on April 16, 2015, 03:10:59 AM
I doint think their is, just learn gmod Lua I guess
Title: Re: GMod UTF-8
Post by: BigBrainAFK on April 16, 2015, 04:13:59 AM
The problem is that german language uses some Umlaute (ä,ö,ü) and also ß (sz) and i don't want to use ae for ä, oe for ö, ue for ü and sz for ß all the time.
Title: Re: GMod UTF-8
Post by: Stickly Man! on April 16, 2015, 10:44:59 AM
Unless I'm mistaken (which I might be)- I think that lua strings are direct passthroughs for c-strings, meaning that it's up to the Source Engine to handle the strings and properly display Unicode characters. I haven't tested this myself though.

One thing you can at least test in the meantime is to make sure your text editor is saving your script in the correct encoding- Notepad++ and Sublime have ways to check that.
Title: Re: GMod UTF-8
Post by: /2 MAN on August 27, 2015, 09:15:31 PM
Hello,

i just wanted to ask if there is a way to change GMod Lua to utf-8 so that i can put ä,ö,ü and stuff like that into my Strings.

Yes