Facing special characters on datasource node rendering in place of "-"

In above image its rending data from thirdparty api calls by name . in place of "-" its coming.
but from api i can see value

In above image its rending data from thirdparty api calls by name . in place of "-" its coming.
but from api i can see value
Making sure you are encoding your strings as UTF-8 in Java should solve the trick.
Encoding With Commons-Codec
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.14</version>
</dependency>
String rawString = "Welcome to Progress - Image Film";
byte[] bytes = StringUtils.getBytesUtf8(rawString);
String utf8EncodedString = StringUtils.newStringUtf8(bytes);
What is UTF-8?
UTF-8 is a variable-width character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode Transformation Format – 8-bit. UTF-8 is capable of encoding all 1,112,064 valid character code points in Unicode using one to four one-byte code units.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.