Hi George,
Thanks for your answer.
You write: "as it is easy to verify your text payload programmatically prior to the API call"
Could you give an example of the lines of code to do this, in Javascript or PHP? In other words, since it is easy, what code should I use to count characters prior to sending them to the Google Translate API (especially since they have all been URI-encoded first, e.g. a space will be sent to Google as %20).
For instance, if I'm sending a string called myString, it's not quite as simple as (in Javascript)
myString.length;
since, if this string includes a lot of HTML, this is not accurate.
What function what Google recommend I use so I can get an accurate character count, identical to the character count I will be charged for?
Thanks,
Ariel