Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Unicode returning weird character in StringRedisTemplate java from redis

$
0
0

I am trying to store portugese word 'como você está' for a key in redis. Value is set in redis in unicode format 'como voc\x88 est\xa0184\' in redis. But while fetching the value through StringRedisTemplate in Java am getting weird values like 'como voc� est�184'. I tried the code below, but it is not working.

template.setKeySerializer(new StringRedisSerializer());template.setValueSerializer(new StringRedisSerializer());template.setHashKeySerializer(new StringRedisSerializer());template.setHashValueSerializer(new StringRedisSerializer());

Here template object is of StringRedisTemplate class. Is there any mechanism to get the special characters back?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>