Sending an HTML Template through an API

user5921094
Rookie
0 Votes

Hello Support, 

 

Please could you assist as I am trying to push an HTML template via the API - this is the following error we receiving; 

 

object(stdClass)#482 (2) {
["error_key"]=>
string(40) "json.payload.contains_invalid_characters"
["error_message"]=>
string(58) "The request contains text outside supported character set."
}
}

Please could you assist.? 

4 REPLIES 4
Jimmy_D
Employee
0 Votes

Hi @user5921094,

 

Our system uses UTF-8, or 8-bit character set. If you are receiving this error you are most likely using a character set that is not supported. Can you verify if you are using a different character set?


Regards,
Jimmy D.
Tier II API Support Engineer
user5921094
Rookie
0 Votes
<!DOCTYPE html>
<html>
  <head>
		<meta http-equiv="Content-Type" content="text/html charset=ISO-8859-1" />
  </head>
	<body>
		<table class="main" style="width:612px; text-align:center; margin: 0 auto; border: 0px;padding:0px;border-spacing:0px">
Thank you Jimmy, so the charset which I am using is incorrect? 
user5921094
Rookie
0 Votes

Sorry Jimmy, 

 

Note I am using V2. 

Jimmy_D
Employee
0 Votes

Hi @user5921094,

 

The character set you are specifying is fine; however are you including any actual characters in the text you are submitting that is outside of the standard character set allowed by the one you are specifying?


Regards,
Jimmy D.
Tier II API Support Engineer
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up