NXDN: Add SHIFT-JIS support and UTF-8 Conversion and decode Talker Alias for MT 0x27 ALIAS_ARIB; #318

NXDN: Redo NXDN VCALL_ARIB based on observed values and ARIB STD-B54;

Add UTF16 to UTF8 encoding for DMR Talker Alias when its UTF16;

Encoding Unicode / UTF16 to UTF8 Allows for display into Ncurses Terminal, Event History, etc when its CJK and not normal ISO7/ ASCII or UTF8 encoded as UTF16;

Might be beneficial to convert and run all encoded text through UTF8 encode in the future.
This commit is contained in:
lwvmobile
2025-10-08 19:54:35 -04:00
parent 2d04878506
commit cf032ab955
5 changed files with 1561 additions and 91 deletions

View File

@@ -1601,10 +1601,11 @@ void nxdn_message_type (dsd_opts * opts, dsd_state * state, uint8_t MessageType)
else if (MessageType == 0x39) fprintf(stderr, " SDCALL_REQ_USERDATA");
else if (MessageType == 0x3B) fprintf(stderr, " SDCALL_RESP");
else if (MessageType == 0x3F) fprintf(stderr, " ALIAS");
//observed from #318
else if (MessageType == 0x21) fprintf(stderr, " VCALL_ALINCO"); //needs better name
else if (MessageType == 0x28) fprintf(stderr, " TX_REL_ALINCO"); //needs better name
else if (MessageType == 0x27) fprintf(stderr, " MS_PDU_ALINCO"); //needs better name
//observed from #318 and found in ARIB STD-B54
else if (MessageType == 0x21) fprintf(stderr, " VCALL_ARIB_STD_B54");
else if (MessageType == 0x28) fprintf(stderr, " TX_REL_ARIB_STD_B54");
else if (MessageType == 0x27) fprintf(stderr, " ALIAS_ARIB_STD_B54");
//TODO: Add rest of ARIB STD-B54 Message Types (Also, need to add a flag F1 and F2 check here, or earlier and make a seperate one for this)
else fprintf(stderr, " Unknown Message Type: %02X;", MessageType);
fprintf (stderr, "%s", KNRM);