Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
API - Foreign Languages
SOLVE
Participant
May 13, 2020 5:08 PM
Hi,
Whenever we try to Create/Update a contact using the API to a contact whois name/last name is in foreign language, we get a 400 Bad Request error.
How should we encode that? or deal with the issue?
I try with UTF8Encoding C#
Example: Villalón
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
1 Accepted solution
Accepted Solutions
Solution
HubSpot Moderator
May 17, 2020 11:30 PM
Hey @rarayav,
I tried using the v3 endpoint
POST crm/v3/objects/contacts?hapikey={{myhapikey}}
{ "properties": { "lastname": "Villalón", "firstname": "18test" } }
and I'm seeing that a contact with the last name Villalón was created successfully:
Could you try removing the encoding charset=utf-8?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content