Hi. I was in need for a simple but powerful enough engine for a visual novel, and someone suggested me using the RenPy. It's really great for a non-coder like me, many thanks to its creators.
But i have a small problem. I'm a russian, so i use cyrillic letters in dialogs and character names. But while russian texts in the dialogs are OK, it isn't shown correctly in the characters names. I see something like \uг0430\u0441\u043a there instead of russian letters when playing the compiled game.
I wonder if this can be solved somehow?
cyrillic letters in character's name
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: cyrillic letters in character's name
Yes. In Python code, you must prefix unicode strings (Which Russian names are) with u. So something like:
Code: Select all
init:
$ laika = Character(u"Лайка")
laika "Woof!"
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: cyrillic letters in character's name
Great! Thanks for help.PyTom wrote:Yes. In Python code, you must prefix unicode strings (Which Russian names are) with u.
Who is online
Users browsing this forum: No registered users