Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRedis: specifying encoding for String opterations #58

Open
subwiz opened this issue Oct 30, 2011 · 1 comment
Open

JRedis: specifying encoding for String opterations #58

subwiz opened this issue Oct 30, 2011 · 1 comment
Assignees

Comments

@subwiz
Copy link

subwiz commented Oct 30, 2011

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?

@alphazero
Copy link
Owner

Could use the ConnectionSpec but have to take a look.

@ghost ghost assigned alphazero Nov 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants