I have s simple code:
exten => p111,1, NoOp(********** test unicode char ************);
same => n,Answer();
same => n,Set(myVariable="امین رستمی")
same => n,NoOp(******** #2 ${myVariable}***************);
same => n,Hangup();
when I set the myVariable
with unicode character, it's displayed ???? ?????
.
how to fix this?
update----------------
I read the name of the contact from the database using the value of the caller-id
(with agi
in Asternet
) and set the value in the caller-id-name
, but in the output ????
it shows.
But when I use asterisk's phonebook
, it displays the unicode value
correctly.
How to fix unicode caller-id-name
?
what's the difference between Initialization of variables?
Asterisk do nothign with callerid name. Yes, it is unlikely support for UTF-8 in asterisk. But there are some devices was even 10 years ago which DO support UTF-8.
Support for charset should be just enabled on end-user devices. Asterisk not care if callerid is unreadable in ASCII.
I can't say about Arabic,but for there are some devices that support that for Cyrilic.
Your phonebook is web, it just knows how to use UTF-8. Your phone does not. That is difference.