What's the best option to display Unicode text (hebrew, etc.) in VB6

后端 未结 6 987
余生分开走
余生分开走 2020-11-27 21:04

I have some customers who want to use our speech therapy software in Hebrew.

The programs are in VB6. The best option I\'m aware of are:

  1. use the Forms
6条回答
  •  醉话见心
    2020-11-27 21:47

    Charset table from this link

    enter image description here

    • DBCS - Double-Byte Character Set

    DBCS is actually not the correct terminology for what Windows uses. It is actually MBCS where a character can be 1 or 2 bytes. To illustrate this consider the following code which will take a Unicode string of English and Chinese characters, convert to a byte array of MBCS Chinese, dump the byte array to the immediate window, and finally convert it back to a Unicode string to display in a Unicode aware textbox. The byte array when converted using Chinese(PRC) LCID = 2052 contains single bytes for the english characters and double bytes for the Unicode characters. This proves that it is MBCS and not DBCS:

提交回复
热议问题