jredis
jredis copied to clipboard
JRedis: specifying encoding for String opterations
JRedis client = new JRedis();
client.set("key", "நாஇன் நல்லவன் இல்லை subhash"); // text in Tamil
// Later:
String out = new String(client.get("key")); // This corrupted text
I am getting corrupted text because my PRO system is running:
file.encoding = ANSI_X3.4-1968
When I pass -Dfile.encoding=utf-8 when starting my app-server, the application is working fine. Is it possible to specify encoding using any API method?
Could use the ConnectionSpec but have to take a look.