The International Simutrans Forum


Author Topic: UTF-8 character input  (Read 957 times)

0 Members and 1 Guest are viewing this topic.

Offline Phystam

  • Devotee
  • *
  • Posts: 524
  • Pak256.Ex developer
    • Pak256 wiki page
  • Languages: ja, en, eo
UTF-8 character input
« on: July 04, 2017, 08:35:02 AM »
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 as follows:
Code: [Select]
switch (sys_event.type) {
    case SIM_KEYBOARD:
        ev->ev_class = EVENT_KEYBOARD;
        ev->ev_class = sys_event.code;
    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.