Page 1 of 1

Non English characters on non agent api.

PostPosted: Fri Jul 27, 2018 4:04 am
by hashtagjet
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

Re: Non English characters on non agent api.

PostPosted: Fri Jul 27, 2018 4:41 am
by blackbird2306
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!

Re: Non English characters on non agent api.

PostPosted: Fri Jul 27, 2018 4:45 am
by hashtagjet
Thanks Blackbird. Awesome stuff. It's working now.