Russian NickName

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
managerlexx
Posts: 45
Joined: Tue Jan 27, 2009 12:05 am

Russian NickName

Post by managerlexx »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:3136M
L2JDP Revision Number:6211M

Question for Russian:)
In Gracia Final there was a possibility to create NickName in Russian.

Question:
For me at creation of the character with Russian NickName instead of characters appear - ????????.

How to make so that in game NickName was Russian?

I assume that in the table "Characters" in a column "char_name" it is necessary to put coding UTF8 instead of latin?

Thanks.
Forgive for my bad English :)
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Russian NickName

Post by qwerty13 »

Try to set utf-8 encoding for your database.
and look this lines in config
CnameTemplate = .*
PetNameTemplate = .*
User avatar
managerlexx
Posts: 45
Joined: Tue Jan 27, 2009 12:05 am

Re: Russian NickName

Post by managerlexx »

In which table to put coding UTF8?
And in what column?
Or it is necessary to put coding UTF8 to all database?
Forgive for my bad English :)
Eragon
Posts: 82
Joined: Thu Apr 21, 2005 2:14 pm

Re: Russian NickName

Post by Eragon »

My guess is the Character name table in the characters.sql file.

But unsure, on the previous versions of L2, it was only possible with client edits.
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Russian NickName

Post by qwerty13 »

Or use russian offical client.
User avatar
managerlexx
Posts: 45
Joined: Tue Jan 27, 2009 12:05 am

Re: Russian NickName

Post by managerlexx »

Matter is not in the game client:)

At input NickName in Russian in a database it is saved in sort- ??????? - Here such characters.
Forgive for my bad English :)
Evilus
Posts: 387
Joined: Mon Jun 09, 2008 6:08 pm

Re: Russian NickName

Post by Evilus »

Try this man

\u0410-\u042f\u0430-\u044f <----Add that where nicks are checked..ie valid names and so on

and in server.properties..

change URL = jdbc:mysql://localhost/l2jdb

to URL = jdbc:mysql://localhost/l2jdb?useUnicode=true&characterEncoding=utf-8
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Russian NickName

Post by _DS_ »

Works for me by just using utf8 for database (and proper client).
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Vapulabe
Posts: 271
Joined: Wed Mar 19, 2008 10:16 am

Re: Russian NickName

Post by Vapulabe »

I think that putting the DB in UTF-8 could be a good idea anyway.

Java uses Unicode to store strings... And there are other languages that use non-ascii characters (like french : éèêëàùç...), german (the double "s" which looks like greek "beta"), turkish (i without a dot), polish (cedilla under a and e, barred l), ...
User avatar
managerlexx
Posts: 45
Joined: Tue Jan 27, 2009 12:05 am

Re: Russian NickName

Post by managerlexx »

Evilus wrote:Try this man

\u0410-\u042f\u0430-\u044f <----Add that where nicks are checked..ie valid names and so on

and in server.properties..

Code: Select all

 ---------------------------------------------------------------------------# Misc Player Settings# ---------------------------------------------------------------------------# Character name template.# Example: CnameTemplate = [A-Z][a-z]{3,3}[A-Za-z0-9]*# The above setting will allow names with first capital letter, next three small letters, and any (capital or not) letter or number, like OmfgWTF1# Most rational to have CnameTemplate = [A-Z][a-z]*# The above setting will allow names only of letters with first one capital, like Omfgwtf# Default .* (as many of any symbols)CnameTemplate = .*PetNameTemplate = .*
Where exactly to insert and in what form?))
Make an example please)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Evilus wrote: change URL = jdbc:mysql://localhost/l2jdb

to URL = jdbc:mysql://localhost/l2jdb?useUnicode=true&characterEncoding=utf-8
It needs to be changed only in a config?
Or the database needs to be translated too in UTF8?))
Forgive for my bad English :)
Evilus
Posts: 387
Joined: Mon Jun 09, 2008 6:08 pm

Re: Russian NickName

Post by Evilus »

managerlexx wrote:
Evilus wrote:Try this man

\u0410-\u042f\u0430-\u044f <----Add that where nicks are checked..ie valid names and so on

and in server.properties..

Code: Select all

 ---------------------------------------------------------------------------# Misc Player Settings# ---------------------------------------------------------------------------# Character name template.# Example: CnameTemplate = [A-Z][a-z]{3,3}[A-Za-z0-9]*# The above setting will allow names with first capital letter, next three small letters, and any (capital or not) letter or number, like OmfgWTF1# Most rational to have CnameTemplate = [A-Z][a-z]*# The above setting will allow names only of letters with first one capital, like Omfgwtf# Default .* (as many of any symbols)CnameTemplate = .*PetNameTemplate = .*
Where exactly to insert and in what form?))
Make an example please)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Evilus wrote: change URL = jdbc:mysql://localhost/l2jdb

to URL = jdbc:mysql://localhost/l2jdb?useUnicode=true&characterEncoding=utf-8
It needs to be changed only in a config?
Or the database needs to be translated too in UTF8?))
CnameTemplate = [A-Za-z0-9\u0410-\u042f\u0430-\u044f]{3,16}
PetNameTemplate = [A-Za-z0-9\u0410-\u042f\u0430-\u044f]{3,16}

and so on

should be enough to only in teh server.properties
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Russian NickName

Post by qwerty13 »

All work fine. But i have problem with encoding in community board. In region, player name encoding is crazy. O_o
Post Reply