Text Command don't display French ASCII character
Raphayo
Posts: 111
Hi All,
i got a MXT-1001 and i'm trying to display text by using ^TXT Command
if i send to my panel
SEND_COMMAND dvtp,"'^txt-1,0,Français'"
it display Fran?ais
if i enter the text in the TP5 it works. any character higher than 127 doing this.
i have not tested it with another panel, i will try tonight but someone could point me in the correct direction.
thanks all.
i got a MXT-1001 and i'm trying to display text by using ^TXT Command
if i send to my panel
SEND_COMMAND dvtp,"'^txt-1,0,Français'"
it display Fran?ais
if i enter the text in the TP5 it works. any character higher than 127 doing this.
i have not tested it with another panel, i will try tonight but someone could point me in the correct direction.
thanks all.
0
Comments
Paul
I just have to replace ^txt by ^uni ?
Its not quite that simple. The text is sent as ASCII-HEX nibbles. Look up WC_ENCODE and WC_DECODE for built in functions that encode/decode unicode.
"'^UNI-<variable text address range>,<button states range>,<unicode text>'"
Set Unicode text. For the ^UNI command (%UN and ^BMF command), the Unicode
text is sent as ASCII-HEX nibbles.
Syntax:
SEND_COMMAND <DEV>,"'^UNI-<vt addr range>,<button states range>,<unicode text>'"
Variables:
variable text address range = 1 - 4000.
button states range = 1 - 256 for multi-state buttons
(0 = All states, for General buttons 1 = Off state and 2 = On state).
unicode text = Unicode HEX value.
Example:
SEND_COMMAND Panel,"'^UNI-500,1,0041'"
Sets the button's unicode character to 'A'.
Note: To send the variable text 'A' in Unicode to all states of the variable text
button 1, (for which the character code is 0041 Hex), send the following command:
SEND_COMMAND TP,"'^UNI-1,0,0041'"
Note: Unicode is always represented in a HEX value. TPD4 generates
(through the Text Enter Box dialog), unicode HEX values.