# Inserting Accented Letters

**URL:** <https://community.hubspot.com/t/inserting-accented-letters/61330>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [July 20, 2022, 11:25am UTC](https://community.hubspot.com/t/inserting-accented-letters/61330 "2022-07-20T11:25:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorinda](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@Lorinda](https://community.hubspot.com/u/Lorinda)\
**Post date:** [July 20, 2022, 11:25am UTC](https://community.hubspot.com/t/inserting-accented-letters/61330/1 "2022-07-20T11:25:58Z")

</div>

Hi All,

I’m trying to insert names with accented letters such as Sofía via the v3 API. I successfully inserted 14k contacts and only approx 30 failed, all have the accents so I’m pretty sure they are the problem.

Below is my request url (I XXed out the personal info and API key)

[https://api.hubapi.com/crm/v3/objects/contacts/batch/create?hapikey=XXXXX](https://api.hubapi.com/crm/v3/objects/contacts/batch/create?hapikey=XXXXX)

Content-Type

application/json

And Data

{“inputs”: [{ “properties”: { “company”: “”, “email”: “[SXXXXX@gmail.com](mailto:SXXXXX@gmail.com)”, “firstname”: “Sofía”, “lastname”: “”, “phone”: “+6XXXXXXXXX”, “custom\_lead\_source”: “Mr Yum”, “marketing\_guest\_manual”: “true”, “website”: “” } }]}

And response

{“status”:“error”,“message”:“Invalid input JSON on line 1, column 225: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 1])”,“correlationId”:“d042b22e-eee2-4584-9179-dc04459d1122”}

Any advice on how to handle these charachters would be much appreciated!

Many thanks

Lorinda 🙂

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [July 20, 2022, 12:48pm UTC](https://community.hubspot.com/t/inserting-accented-letters/61330/2 "2022-07-20T12:48:05Z")

</div>

Hi @Lorinda,

I’ll link to [another post that seems to be linked to your issue.](https://community.hubspot.com/t5/CMS-Development/Issues-with-special-characters-while-sending-value-in-the/td-p/406634)

Could you try using url encode, as suggested, and make that push again to see if that’s the reason why it’s failing ?

To [url encode](https://www.w3schools.com/tags/ref_urlencode.ASP), either you can do it with javascript or php (or any other language that supports url encode) or you could simply try to use the tester on the aforelinked website.

Hope this helps !  
If it does, please consider marking this answer as a solution 🙂

Best,

Ludwig

---

<div class="post-metadata">

**Author:** ![Lorinda](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@Lorinda](https://community.hubspot.com/u/Lorinda)\
**Post date:** [August 8, 2022, 4:40pm UTC](https://community.hubspot.com/t/inserting-accented-letters/61330/3 "2022-08-08T16:40:12Z")

</div>

Thanks Ludwig. This looks like it should help. I’ll have a go this week and let you know how I get on
