Page 1 of 1
Russian Names
Posted: Wed Jan 20, 2010 7:49 pm
by Pronin
Greetings. Tell as it is possible to work with Russian names? At script creation it is used NPC for sale, repair at it the name in Russian is registered. At start gives out an error in a way file.
Excuse for bad English.
Re: Russian Names
Posted: Thu Jan 21, 2010 1:33 am
by Administrator
What? You essentially said, "I had an error. I'm not going to tell you what it is, but I expect you to know the cause." Not very helpful.
Re: Russian Names
Posted: Thu Jan 21, 2010 7:50 am
by Pronin

This is name of NPC.

This is error.
So. I have created a returning way to a hunting place. In the course of a way it should approach to NPC for repair and sale of things. But at the test the error is deduced.
player:target_NPC("ђ®ид®а"); <---- it is name of NPC in waypoint file.
Re: Russian Names
Posted: Thu Jan 21, 2010 5:21 pm
by Administrator
Use Notepad++ to modify the XML files. You must go to "Format->Encode in UTF8 without BOM", and then add this to the
very first line of the file:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
EDIT: Actually, since this is going into the Lua code section, you'll have to convert the Russian characters to decimal codes. See
this.