The macOS build window title has wrong encoding

The information from Info.plist is used for the application title, but the window title seems to go the other way. Is there an option to specify the encoding for the window title correctly?

I wonder if this isn’t an error when we read the window title from game project and set it in GLFW:

Engine: defold/engine/engine/src/engine.cpp at 7845c6c0d7ef4b19aac3a1fbbbfd3bd1be2757f7 · defold/defold · GitHub

OpenGL: defold/engine/graphics/src/opengl/graphics_opengl.cpp at dev · defold/defold · GitHub

GLFW: https://github.com/defold/defold/blob/dev/engine/glfw/lib/cocoa/cocoa_window.m#L817-L818 (I wonder about the encoding here)

1 Like

This is true. NSISOLatin1StringEncoding definitely kills any foreign characters. What about NSUTF8StringEncoding, will it work with incoming c-title?

Not sure, but it’s something we can try. If you create a ticket on GH I’ll prepare a PR for you to try!

1 Like

Done! https://github.com/defold/defold/issues/6138.

Also I’m trying to building the engine from sources myself to check such things, but it’s still in the progress.

3 Likes