New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pasting Unicode text sometimes doesn't work on Windows #11300
Comments
Downloaded the latest 5.5.0-dev windows 64 build and reproed the above, here are the results: For starters, set all the fonts to use Unifont and the Upper variant as fallback: Copypasting Italian accented letters in a textbox works, but typing or pasting greek or cyrillic still fails with question marks: Printing greek or cyrillic via a mod works, printing smileys still fails (the last line should have been In the following I pasted in the chat prompt all of this text at once: minetest.register_chatcommand("utf8test", {
description = "utf8 test description",
func = function()
minetest.chat_send_all("greek: οψρψρξεyωρψ")
minetest.chat_send_all("cyrillic: вротмввсмшнкыардж")
minetest.chat_send_all("smileys: 😀 🤪 😠")
end
}) |
There's two different things here:
|
Also directly entering some of those Unicode chars seems to be broken, so the issues may be three in total - at least, I assume that if my AutoHotKey script is working properly anywhere else, it should be sending the correct chars to Minetest as well, and as such it would be different from pasting. Should I close / edit this issue and create new ones to split them all? |
works for me or fixed by minetest/irrlicht@34f1f8d |
Minetest version 5.4.1, seeing a few oddities trying to deal with UTF-8 characters.
I set all the game fonts (from the settings) to use Unifont and the fallback one to use Unifont Upper, for starters.
Printing Greek or Russian characters in the chat via a mod works, but trying to type such chars directly in the chat, just like pasting such text, results in question marks.
Same behavior (question marks) trying to type Greek characters in a textbox.
(By the way, I enter such Greek characters via a AutoHotKey script, which seems to work fine everywhere else - just like here, typing some random gibberish: καjηδφκασhδφκθασδφ)
Typing Italian accented vowels in a textbox they show up correctly, but as I copy them from the same textbox and I paste it back it comes up garbled. (my real keyboard has the Italian layout)
Attaching a few screenshots showing the behavior (where I tried to print Russian characters I also appended a Unicode smiley, which the chat didn't print out)
Mod-printed Russian chars, the mod printed these chars + a Unicode Smiley (this one: 😀) but the chat didn't print it out:
Mod-printed Greek chars + Greek chars typed in the chat (showing up as question marks:)
Italian accented letters entered properly with my Italian keyboard:
Result of copypasting the above Italian accented letters:
Edit: adding the AutoHotKey script I use to enter Greek chars with CapsLock on:
Unicode.ahk.txt
The text was updated successfully, but these errors were encountered: