pyrinoff
5 years agoNew Contributor
Problem with encoding
Hi there!
I have a problem with system encoding:
''
And I cant change this option on working computer (file is not accessable to write):
-Dfile.encoding=UTF8
The problem:
1) (screen 1) I cant change encoding in REST mock. I tried simply show HTML page, but it is in wrong encoding (cp1251)
2) (screen 2) I get response from mock, and then send it to another service. Result: my request sended in cp1251, not in utf-8, even if i set Encoding = UTF-8 to request settings
Any suggestions how to fix it without Dfile.encoding=UTF8.
I'm not a java-guy, tryed something like
new String(context.expand( '${Redirect to local mock#Response}' ).getBytes('UTF-8'), 'UTF-8')
but no luck.
Thanks a lot!