Added force encoding to response

This commit is contained in:
Sergei Tsoganov 2022-11-25 12:31:30 +02:00
parent baa2f81259
commit a13f2dce6c

View file

@ -7,7 +7,7 @@ module EppRequestable
def create
result = server.request(request_params[:payload])
render_success(data: { xml: result })
render_success(data: { xml: result.force_encoding('UTF-8') })
rescue StandardError
handle_non_epp_errors(nil, I18n.t('errors.messages.epp_conn_error'))
end