jredis icon indicating copy to clipboard operation
jredis copied to clipboard

JRedis: specifying encoding for String opterations

Open subwiz opened this issue 13 years ago • 1 comments

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?

subwiz avatar Oct 30 '11 04:10 subwiz

Could use the ConnectionSpec but have to take a look.

alphazero avatar Nov 01 '11 16:11 alphazero