HerculesWS / Hercules

Hercules is a collaborative software development project revolving around the creation of a robust massively multiplayer online role playing game (MMORPG) server package. Written in C, the program is very versatile and provides NPCs, warps and modifications. The project is jointly managed by a group of volunteers located around the world as well as a tremendous community providing QA and support. Hercules is a continuation of the original Athena project.
http://herc.ws
GNU General Public License v3.0
900 stars 758 forks source link

Special Characters on character name #1576

Closed mnjfx closed 4 years ago

mnjfx commented 7 years ago

Hi All,

I am having trouble with the special characters in game. I've checked everything I can on my end. tried 2 different clients and still no luck.

The thing is, it has no problems on my local ( windows ) server. On our test ( hosted/linux ) server it doesn't show.

When I use the • and ™ whole character name shows up as blank.

[spoiler]

[/spoiler]

char_server.conf

[spoiler]

    // Character name configuration
    name: {
        // Name used for unknown characters
        unknown_char_name: "Unknown"

        // Allow or not identical name for characters but with a different case (upper/lower):
        // example: Test-test-TEST-TesT; Value: 0 not allowed (default), 1 allowed
        name_ignoring_case: false

        // Manage possible letters/symbol in the name of charater. Control character (0x00-0x1f) are never accepted. Possible values are:
        // NOTE: Applies to character, party and guild names.
        // 0: no restriction (default)
        // 1: only letters/symbols in 'name_letters' option.
        // 2: Letters/symbols in 'name_letters' option are forbidden. All others are possibles.
        name_option: 0

        // Set the letters/symbols that you want use with the 'char_name_option' option.
        // Note: Don't add spaces unless you mean to add 'space' to the list.
        name_letters: "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^&*()_+`-=[]\{}|;':<>?,./•™"
    }

[/spoiler]

Tried the following clientinfo.xml settings

First

[spoiler]

<?xml version="1.0" encoding="euc-kr" ?>

Ragnarok Client Information korea sakray Server
6900 20 1 2000000 2000001 2000002 2000003 2000004 2000005 2000006 2000007 2000008 2000009 2000010

[/spoiler]

Second

[spoiler]

<?xml version="1.0" encoding="euc-kr" ?>

Ragnarok Client Information korea primary Server
6900 20 0 2000000 2000001 2000002 2000003 2000004 2000005 2000006 2000007 2000008 2000009 2000010

[/spoiler]

Sorry, wrong section, if a mod comes by please move to correct section

MishimaHaruna commented 7 years ago

The • and ™ characters aren't part of the ASCII character set. As such, their representation depends on the character set and encoding your editor is using, which should be configured to use the same encoding as the Ragnarok client you use to connect to the server. Likewise, the Ragnarok clients don't support unicode, and still use the legacy Windows character sets, making them very dependent on the settings of the computer they're run on (in other words, what you see as ™ on your client, might have a completely different appearance on someone else's client).

Kenpachi2k13 commented 4 years ago

Issue not caused by emulator. close();