How to encode output for extended charbs

Trying to encode when creating xml output to transform for example ‘Ð’ to escaped value of ú ( I think ). Tried using bytesToString with encoding set to ISO-8859-1. This results in ‘?’ replacing the ‘Ð’. Using 4.6 and have also tried variations of above, resulting in either ‘?’ or no change to the character.

If you are trying to create an XML from the record using recordToDocument service then set the value “true” to encode variable.