Perhaps classes CL_ABAP_CONV_IN_CE and CL_ABAP_CONV_OUT_CE can be used to change encoding. That, in addition to your replace statement may work.
Do read the class documentation.
Perhaps classes CL_ABAP_CONV_IN_CE and CL_ABAP_CONV_OUT_CE can be used to change encoding. That, in addition to your replace statement may work.
Do read the class documentation.