[NML] Add Umlaute (ä/ö/ü) into a .lng file

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
PNDA_
Engineer
Engineer
Posts: 52
Joined: 18 Jul 2018 17:26
Location: Germany

[NML] Add Umlaute (ä/ö/ü) into a .lng file

Post by PNDA_ » 28 Sep 2018 11:30

Hey,

Ive just started developing a new Set, and have come across the issue of not being able to add Umlaute in my .lng file.
Gwyd already tried to help me with this solution at the top of the .lng file which did not work:

Code: Select all

##grflangid 0x01
##plural 0
##gender m w n p
I have looked online but I could not find anything.
Due to DACH having Umlaute in the names it cannot be impossible.
And im trying to have all language files support these Umlaute. That currently being English and German. I am unsure but i think using this works for the German File:

Code: Select all

##grflangid 0x02
##gender m w n p`
If anyone could help me, that would be great,
Thanks
Last edited by PNDA_ on 28 Oct 2018 19:41, edited 1 time in total.
Image

Eddi
Tycoon
Tycoon
Posts: 7414
Joined: 17 Jan 2007 00:14

Re: [NML] Add Umlaute (ä/ö/ü) into a .lng file

Post by Eddi » 28 Sep 2018 14:51

you must make sure your editor is configured to save the file as "utf8", not "windows-1252" or anything else
You might not exactly be interested in Ferion, but if you are, have fun :)

User avatar
PNDA_
Engineer
Engineer
Posts: 52
Joined: 18 Jul 2018 17:26
Location: Germany

Re: [NML] Add Umlaute (ä/ö/ü) into a .lng file

Post by PNDA_ » 28 Sep 2018 15:25

Eddi wrote:you must make sure your editor is configured to save the file as "utf8", not "windows-1252" or anything else
Yeah, thanks. I didn't think that my editor would not save these files as UTF-8...
Danke

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest