Page 1 of 1

cyrillic letters in character's name

Posted: Wed Aug 15, 2007 8:20 am
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?

Re: cyrillic letters in character's name

Posted: Wed Aug 15, 2007 10:21 am
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!"

Re: cyrillic letters in character's name

Posted: Wed Aug 15, 2007 10:53 pm
by rainy
PyTom wrote:Yes. In Python code, you must prefix unicode strings (Which Russian names are) with u.
Great! Thanks for help. :)