Page 1 of 1

Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Fri Sep 18, 2015 1:12 pm
by 2life
Hi, i use:
Vicibox_v.6.0.x86_64-6.0.4

Vicidial
VERSION: 2.12-505a
BUILD: 150806-1348

After installing/setting up VICIdial, I've faced with an issue that it does not support cyriliic encoding

When I load the input file (leads) whith cyrillic symbols - I see either the 'аЂаИаМаИб‡аЕаВаА ааА' or the 'аœаОаЛаДаАаВбаКаАб аЃаЛ' symbols.

My browser puts the wrong encoding ISO 8859-5, the real encoding is UTF-8.
If I manually change the encoding in the browser, the data is displayed correctly.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Fri Sep 18, 2015 1:19 pm
by mflorell
You will probably have to manually change MySQL to use UTF-8 encoding for data. I'm not sure if you will have to make Apache or PHP changes, but the web coding should work for all UTF-8 encoded languages, we have clients using Japanese and Traditional Chinese and those work within the existing code framework, so Cyrillic should too.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Fri Sep 18, 2015 2:03 pm
by 2life
Base 'asterisk' is utf-8 in my installation

The problem is not at the database, but the problem is how the page to load lead lists is shown.

What to do next?

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Fri Sep 18, 2015 5:21 pm
by mflorell
Have you tried the Non-Agent API to load leads, or the CLI script VICIDIAL_IN_new_leads_file.pl to load leads?

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Sat Sep 19, 2015 12:06 am
by 2life
I set Agent API Access: to 1, and try load page https://192.168.x.x/vicidial/non_agent_api.php, my result is:

Code: Select all
ERROR: Login incorrect, please try again: |||BAD|


Code: Select all
vicibox:/usr/share/astguiclient # tail -f /var/log/apache2/access_log
10.10.52.4 - 6666 [19/Sep/2015:07:53:07 +0300] "GET /vicidial/non_agent_api.php HTTP/1.1" 200 50
10.10.52.4 - 6666 [19/Sep/2015:08:01:09 +0300] "GET /vicidial/admin.php HTTP/1.1" 200 3312
10.10.52.4 - 6666 [19/Sep/2015:08:01:11 +0300] "GET /vicidial/admin.php?ADD=0A HTTP/1.1" 200 3423
10.10.52.4 - 6666 [19/Sep/2015:08:01:13 +0300] "GET /vicidial/admin.php?ADD=3&user=6666 HTTP/1.1" 200 7649
10.10.52.4 - 6666 [19/Sep/2015:08:01:46 +0300] "GET /vicidial/help.php HTTP/1.1" 200 77110
10.10.52.4 - 6666 [19/Sep/2015:08:03:04 +0300] "GET /vicidial/non_agent_api.php HTTP/1.1" 200 50
10.10.52.4 - 6666 [19/Sep/2015:08:15:18 +0300] "GET /vicidial/non_agent_api.php HTTP/1.1" 200 50
10.10.52.4 - 6666 [19/Sep/2015:08:15:24 +0300] "GET /vicidial/non_agent_api.php HTTP/1.1" 200 50
10.10.52.4 - 6666 [19/Sep/2015:08:15:43 +0300] "GET /vicidial/non_agent_api.php HTTP/1.1" 200 50
10.10.52.4 - 6666 [19/Sep/2015:08:15:44 +0300] "GET /vicidial/non_agent_api.php HTTP/1.1" 200 50


Load leads over CLI script is very very difficult for VICIdial users,
And while I have not tried it myself

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Sat Sep 19, 2015 6:39 am
by mflorell
Please read the Non-Agent API documentation, and try again,
http://www.vicidial.org/docs/NON-AGENT_API.txt

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Sat Sep 19, 2015 9:10 am
by 2life
Thank you so much, but this scenario to use API is not for me...
Problem only in frontend on admin_listloader_fourth_gen.php page (frontend is automatically shown in ISO 8859-5 encoding) and admin_listloader_third_gen.php (windows-1251). But the UTF-8 encoding is correct and required. The rest system is displayed properly in correct UTF-8.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Mon Sep 21, 2015 12:53 pm
by bobchaos
could this be related to http://www.vicidial.org/VICIDIALmantis/view.php?id=890 ?

Are cyrillic characters rendered properly in the admin page labels? If the problem only occurs in input fields it may well be the same issue. You may want to add a record of your own to the bug report.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Mon Sep 21, 2015 2:24 pm
by 2life
Yes it is are the same problem. Cyrillic characters are rendered properly in the admin page labels.
I don't have access to bug tracking system.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Mon Sep 21, 2015 7:19 pm
by bobchaos
you can easily create an account for free, all you need is a valid email address. It would likely help mflorell to have more examples and I would certainly appreciate any help in solving this. All my french clients (well, that`s all of them really XD ) were really excited to get language support so this issue was a bit of a bummer for everyone.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Mon Sep 21, 2015 8:03 pm
by mflorell
Have you tried loading the leads using text files(.txt files that are tab or pipe delimited)?

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Tue Sep 22, 2015 7:31 am
by 2life
Dear bobchaos,
I am unable to register because the registration page there is no verification code. I tried different browsers and different operating systems.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Tue Sep 22, 2015 7:42 am
by 2life
mflorell wrote:Have you tried loading the leads using text files(.txt files that are tab or pipe delimited)?


I could show the screenshot of the problem. But I cannot attach the screenshot of the problem here. at that portal/forum because I have no such user privileges...
Could you please provide me an email or any another way (skype probably) to send the screenshot?

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Tue Sep 22, 2015 8:22 am
by mflorell
I just updated the Issue Tracker version, new account registration should be working properly now.

Re: Cyrillic encoding (unicode) support in VICIdial?

PostPosted: Tue Sep 22, 2015 2:01 pm
by bobchaos
@2life I saw you added some screenshots on the issue tracker, thanks :D