Charset troubleshooting

From Safe Creative API
Revision as of 11:38, 6 May 2010 by w>Jguillo (Created page with 'The component '''charset.analysis''' returns the bytes corresponding to the UTF-8 encoding of the text specified in the parameter: REQUEST: <pre> https://api.safecreative.org/v…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The component charset.analysis returns the bytes corresponding to the UTF-8 encoding of the text specified in the parameter:


REQUEST:

https://api.safecreative.org/v2/
?component=charset.analysis
&text=any+UFT-8+string+to+be+analyzed

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?>
<charsetanalisys>
  <text>any UFT-8 string to be analyzed</text>
  <charlen>31</charlen>
  <byteslen>31</byteslen>
  <bytes>616e79205546542d3820737472696e6720746f20626520616e616c797a6564</bytes>
</charsetanalisys>