Text Command don't display French ASCII character
Raphayo
Junior Member
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.
Comments
-
The ^TXT command only sends non-unicode text. You would need the ^UNI command to send unicode.
Paul -
I will try that tomorrow.
I just have to replace ^txt by ^uni ? -
I will try that tomorrow.
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. -
It cannot be sample always something to give us a programming challenge..
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums