Encode a string from UTF-8 to ANSI(without changing special characters in string)

HI,
Can someone please explain how to encode a string from UTF-8 to ANSI without effecting or missing the special characters in the string.

Thanks in advance