Sending an HTML Template through an API

Occasional Participant

Sending an HTML Template through an API

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
Moderator

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
Occasional Participant

<!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? 

Sorry Jimmy, 

 

Note I am using V2. 

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
Developer Portal

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

Visit Page