Non English characters on non agent api.

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Non English characters on non agent api.

Postby hashtagjet » Fri Jul 27, 2018 4:04 am

Hi,

I am currently building integration for auto importing leads from our CRM to Vicidial. No issue with non_agent_api as far as writing into the server. The biggest issue is if some of the values I send are in Chinese, or Thai, the system just registers it as blank.

I could just bypass by directly adding fields that are non English directly to the DB. But would prefer to get the API working instead. Below is a sample.

Code: Select all
http://vicibox-server/vicidial/non_agent_api.php?source=test&user=6363&pass=PASSWORDHERE&function=add_lead&list_id=10005&phone_code=86&phone_number=18824324242&first_name=靖&last_name=梁&custom_fields=Y&cmp_name=Test520Campaign&add_to_hopper=Y&player_username=username1&playerid=5252525&hopper_priority=99&hopper_local_call_time_check=N


This is successful after I run it, but the first_name and last_name is empty when I look at the system. It's also blank on the DB. Any idea on how to get this to work without direct writing to DB?

Any help would be much appreciated.

Cheers,
Jet
hashtagjet
 
Posts: 30
Joined: Thu Jul 12, 2018 3:16 am

Re: Non English characters on non agent api.

Postby blackbird2306 » Fri Jul 27, 2018 4:41 am

I have tested it just now and it's working for me. You need to change "Use Non-Latin" to "1" in system settings. And make sure your url is url encoded with UTF-8! Further read some basic steps about charset encoding.

By the way: Please post your vicidial version, build and installation method!
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: Non English characters on non agent api.

Postby hashtagjet » Fri Jul 27, 2018 4:45 am

Thanks Blackbird. Awesome stuff. It's working now.
hashtagjet
 
Posts: 30
Joined: Thu Jul 12, 2018 3:16 am


Return to Support

Who is online

Users browsing this forum: No registered users and 79 guests