News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

UTF-8 character input

Started by Phystam, July 04, 2017, 08:35:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Phystam

I could not input UTF-8 characters sequence such as Japanese.
When I added a code in "static void fill_event(event_t* const ev)" function of simevent.cc as follows:

switch (sys_event.type) {
    case SIM_KEYBOARD:
        ev->ev_class = EVENT_KEYBOARD;
        ev->ev_class = sys_event.code;
        break;
    case SIM_STRING: //added
        ev->ev_class = EVENT_STRING; //added
        ev->ev_ptr = sys_event.ptr; //added
        break; //added
    ...
}

then the issue was fixed. This code is included in standard version but not included in extended version.