cyrillic letters in character's name

This is where all the old Lemma Soft-specific posts are (i.e. Tales of Lemma 1, Shoujo Attack!, and some Hanafuda Club). They are here for old times sake ^^
Locked
Message
Author
rainy

cyrillic letters in character's name

#1 Post by rainy »

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?

User avatar
PyTom
Ren'Py Creator
Posts: 16088
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

#2 Post by PyTom »

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
Software > Drama • https://www.patreon.com/renpytom

rainy

Re: cyrillic letters in character's name

#3 Post by rainy »

PyTom wrote:Yes. In Python code, you must prefix unicode strings (Which Russian names are) with u.
Great! Thanks for help. :)

Locked

Who is online

Users browsing this forum: No registered users