Skip to content

LuaScript Cyrillic Support #887

@DreamFabrik

Description

@DreamFabrik

Describe the Helios Issue

Using Cyrillic symbols in Lua Script by the trigger of the binding "set Text" in control "Label" returns "???" instead of text. There is no issue with using of Latin letters.

Steps to Reproduce the problem

Steps to reproduce the behaviour:

  1. Write any script to return a text in Cyrillic. Just like "return "ОФ"" (pic 1)
  2. Start Helios and DCS and see result as "??" (pic 2)
  3. Using Latin letter in script returns everything fine like "return "HP"" (pic 3)
  4. See result (pic 4)

Expected behavior

I'm expecting to get a text in Cyrillic by running trigger conditions using the binding "set Text" of the control "Label".

Please complete the following information:

  • Helios Version 1.6.6150.0002

The problem happened while using

  • Profile Editor
  • Control Center

Additional context

I have tried different coding in the profile file (e.g. Windows-1251 instead of UTF-8) but this didn't help. I also tested ASCII charset instead of letters like "return string.char(130)" (pic 5) but it returns "??" as well (pic 6). ASCII charset for Latin letters works fine (pic 7, 8). The issue happens by any font family, no mattter if it supports Cyrilic or not. At the same time, "Text" property of the element shows Cyrillic words without problems (pic 9, 10)

Pic 1:
Image
Pic 2:
Image
Pic 3:
Image
Pic 4:
Image
Pic 5:
Image
Pic 6:
Image
Pic 7:
Image
Pic 8:
Image
Pic 9:
Image
Pic 10:
Image

Metadata

Metadata

Assignees

Labels

DeliveredCode for this issue is in a generally available Helios ReleaseenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions