필터 지우기
필터 지우기

Chinese fonts on a GUI button

조회 수: 3 (최근 30일)
Avishai
Avishai 2015년 2월 24일
편집: Stephen23 2015년 2월 25일
I am trying to build a GUI that has buttons with English and Chinese words on them. However, when I write the text in the 'String' field of the button's property inspector, the Chinese text is automatically erased leaving only the English text. Does anyone know how to add the Chinese text on a GUI button? Thanks.

답변 (1개)

Stephen23
Stephen23 2015년 2월 24일
  댓글 수: 2
Avishai
Avishai 2015년 2월 24일
Thanks. But it doesn't work for me. Using the HTML did work but I don't know how to find the ASCII values of my chinese text?
Stephen23
Stephen23 2015년 2월 25일
편집: Stephen23 2015년 2월 25일
Chinese characters do not have ASCII values because ASCII is only defined up to value 127, and includes only the basic Latin alphabet.
To know how to encode the Chinese characters you have to first know what character encoding system you are going to use, e.g. UTF-8 , UTF-16 , GB 2312 . etc. Of course this encoding cannot be ASCII, as ASCII does not include Chinese characters.
Once you know your encoding then you can look up the values in an index, such as this one for Unicode characters . Note that Unicode is not a single character encoding system, but a standard that defines several character encoding systems.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by