Tranditional Chinese Displaying Problem on button label
Dear Sir,
I got a problem in displaying "Tranditional Chinese" in button label , In the file /usr/local/fop2/buttons.cfg,
when I configure a button label with english, for example, label=mfhsu, in fop panel, it will show "mfhsu" on the button.
But when I configure label=王大明,in fop panel, it will not show correct characters on the button.
I am using asterisk 1.4.22 and fop2-2.27-centos-i386.tgz on centOS 6.2. and I also changed the preference.js to "zh'. it only change login page but not button label.
Sincerely hope you can help us to solve problem as soon as possible , we have bought two licenses and are going to use it in our project.
sincerely yours,
mfhsu
I got a problem in displaying "Tranditional Chinese" in button label , In the file /usr/local/fop2/buttons.cfg,
when I configure a button label with english, for example, label=mfhsu, in fop panel, it will show "mfhsu" on the button.
But when I configure label=王大明,in fop panel, it will not show correct characters on the button.
I am using asterisk 1.4.22 and fop2-2.27-centos-i386.tgz on centOS 6.2. and I also changed the preference.js to "zh'. it only change login page but not button label.
Sincerely hope you can help us to solve problem as soon as possible , we have bought two licenses and are going to use it in our project.
sincerely yours,
mfhsu
Comments
file buttons.cfg
What is the output?
Best regards,
I got [color=#FF0000:2bni3c9v]ASCII text result[/color:2bni3c9v] when I type "file extensions.cfg",
so I first use iconv command to convert file to utf8
such as
#iconv -f latin1 -t utf8 extensions.cfg > extensions1.cfg
but it still can not show correct Tranditional Chinese on the buttons
then I recheck file type again
#file extensions1.cfg
extensions1.cfg: UTF-8 Unicode text, with LF, NEL line terminators
so then use dos2unix command to convert the file
#dos2unix extensions1.cfg
dos2unix: converting file extensions1.cfg to UNIX format ...
Now, I can display correct characters on the buttons and group name
Thanks for your help
mfhsu
Personally I use vim to do the convertion, but explaining how to use VIM is quite complex in itself.
Best regards,
Before use iconv "file buttonsTP1.cfg buttonsTP1.cfg: UTF-8 Unicode text", buttons, and queues were in Chinese.
Using "iconv -f latin1-t utf8 /usr/local/fop2/buttonsTP1.cfg > /usr/local/fop2/buttonsTP2.cfg" "dos2unix /usr/local/fop2/buttonsTP2.cfg" buttons and the queue began to appear correctly, but the inside of the queue line is still in Chinese. What can you do?
Do you want to display cyrilic or chinese? What do you see when you edit your button config file with vim on the server itself?
Enclose a picture of the configuration file buttons.
asterisk -rx "queue show"
?
How do you see your queue member names in there?
fop2_server version 2.28
asterisk -rx "queue show MainQueue"
MainQueue has 0 calls (max unlimited) in 'ringall' strategy (10s holdtime, 247s talktime), W:0, C:659, A:589, SL:0.0% within 0s
Members:
Zaostrovskii (Local/100114@queuephone_billing/n from SIP/100114) (ringinuse enabled) (dynamic) (Not in use) has taken no calls yet
Local/100124@queuephone_billing/n (ringinuse enabled) (dynamic) (Not in use) has taken 44 calls (last was 515 secs ago)
Local/100119@queuephone_billing/n (ringinuse enabled) (dynamic) (In use) has taken 12 calls (last was 356 secs ago)
Local/100111@queuephone_billing/n (ringinuse enabled) (dynamic) (In use) has taken 5 calls (last was 33 secs ago)
Local/100118@queuephone_billing/n (ringinuse enabled) (dynamic) (Not in use) has taken no calls yet
No Callers
fop2_server version 2.28
asterisk -rx "queue show MainQueue"
MainQueue has 0 calls (max unlimited) in 'ringall' strategy (10s holdtime, 247s talktime), W:0, C:659, A:589, SL:0.0% within 0s
Members:
Zaostrovskii (Local/100114@queuephone_billing/n from SIP/100114) (ringinuse enabled) (dynamic) (Not in use) has taken no calls yet
Local/100124@queuephone_billing/n (ringinuse enabled) (dynamic) (Not in use) has taken 44 calls (last was 515 secs ago)
Local/100119@queuephone_billing/n (ringinuse enabled) (dynamic) (In use) has taken 12 calls (last was 356 secs ago)
Local/100111@queuephone_billing/n (ringinuse enabled) (dynamic) (In use) has taken 5 calls (last was 33 secs ago)
Local/100118@queuephone_billing/n (ringinuse enabled) (dynamic) (Not in use) has taken no calls yet
No Callers
In Chrome all ok but in firefox is strange chinese
Chrome.
Open through http encoding all good.
Through https bad.
and
http + var disableWebSocket = true; bad
http + var disableWebSocket = false; ok
Best regards,