Hi everyone,
We're developing a feature with reports, and we've found that parameters are encoded in different way depends on which browser is used (UTF-8 /ISO-8859-1). There is any way in Oscript to change the encode of a string?
Best regards
Str.A2UTF8() should help with normalizing to UTF-8.
You should be able to find examples of its use within the product as a reference.
Cheers,
Kyle
You can enforce the encoding of the parameters as they are send to the server.The usually easiest way to achieve UTF-8 is used (as it is expected and required for data sent to ContentServer) is to use this encoding for the page containing the FORM.See, e.g. https://www.w3.org/TR/html401/interact/forms.html
CS assumes that all data is in UTF-8 and will also set the browser in the UTF-8 encoding mode, If that isn’t the case then you may want to ensure that that is happening in your own code.
Even when the browser sends ISO codes then CS still attempts to convert it to IUTF-8 before it starts processing the data.
Hans
From: eLink Entry: Content Server Development Forum [mailto:development@elinkkc.opentext.com]Sent: Mittwoch, 9. November 2016 18:03To: eLink RecipientSubject: Parameter encoding in Report Export
Parameter encoding in Report Export
Posted by Bielsa, Cristina On 11/09/2016 12:02 PM
[To post a comment, use the normal reply function]
Forum:
Content Server Development Forum
Content Server:
Knowledge Center CS16
Thanks! It works