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

血红的双手。 提交于 2019-12-02 09:32:26

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!