How can I make Russian letters visible in a IUP dialog loaded from a LED file?

后端 未结 1 1998
-上瘾入骨i
-上瘾入骨i 2021-01-26 11:16

How can I make Russian letters visible in a dialog loaded from a LED file?

  • When the LED file is Unicode, IupLoad() returns an erro

1条回答
  •  执笔经年
    2021-01-26 12:11

    First, IUP does NOT supports Unicode. So to test it is useless.

    UTF8MODE_FILE is for file names. Does not affect this case.

    The UTF-8 string maybe affecting the LED parser although they shouldn't. Make sure the LED file does NOT have the UTF-8 BOM. I tested here your LED file and it works using IupLoad or IupLoadBuffer, but in both cases there are problems with the strings.

    The solution is actually simple, just wrap your strings with quotes "", for instance:

    LIST[VALUE=3, 1="я", 2="ты", 3="оно", 4="мы", 5="вы", 6="они", DROPDOWN=YES](do_nothing),
    

    It works.

    0 讨论(0)
提交回复
热议问题