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

Comments

  • Configuration files must be saved in utf8 format, otherwise extended characters won't be displayed. Most probably your buttons.cfg is not in that format. Try:

    file buttons.cfg

    What is the output?

    Best regards,
  • Dear Sir,
    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 :D

    Thanks for your help

    mfhsu
  • Thanks for posting how you converted the file, it might come useful for other users!

    Personally I use vim to do the convertion, but explaining how to use VIM is quite complex in itself.

    Best regards,
  • Found a topic on the forum http://forum.fop2.com/3709-tranditional-chinese-displaying-problem-on-button-label .
    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?
  • Enclose a picture, so it will be more understandable.
  • I do not think I can do much, I still do not understand exactly what you want to achieve. If a button configuration file is saved in utf8 format, and has the proper utf8 codes for whatever character set you might want to use, it will work fine. If you have mixed charsets, incorrect formats, results will be random/strange or even they could break the fop2 application.

    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?
  • Should be displayed on the Cyrillic.
    Enclose a picture of the configuration file buttons.
  • Are you using FOP 2.28? can you attach your buttons.cfg file, or partial file so I can test it out? what is the output from:

    asterisk -rx "queue show"

    ?

    How do you see your queue member names in there?

  • Purchased a license.
    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
  • Purchased a license.
    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
  • I have same problem in groups name. (FOP2 2.28 and latest firefox and chrome)
    In Chrome all ok but in firefox is strange chinese
  • I have just used your exact buttonsTP2.cfg on my test server, and there are no issues with button labels (I cannot see queue member labels as I do not have those queues setup, however, the queue buttons themselves that show funny in your previous screenshot look fine here. I would suggest to redownload 2.28 and install over... as there is nothing strange on your buttons.cfg file.

  • Sorry...
    Chrome.
    Open through http encoding all good.
    Through https bad.

    and
    http + var disableWebSocket = true; bad
    http + var disableWebSocket = false; ok
  • I replied in another thread. Version 2.29 won't use deflate for sending the button config, the usage of deflate+utf8+base64 seems to caused the issue.

    Best regards,
Sign In or Register to comment.