Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit aca062b

Browse files
committed
updated to use Utf8 encoding instead of the system default
1 parent 02b3e42 commit aca062b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ServiceStack.Redis/RedisSentinelWorker.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Diagnostics;
77
using System.IO;
88
using System.Linq;
9+
using System.Text;
910
using System.Threading.Tasks;
1011
using System.Web;
1112

@@ -131,7 +132,7 @@ private IEnumerable<string> ConvertSlaveArrayToList(object[] slaves)
131132
{
132133
if (item is byte[])
133134
{
134-
value = System.Text.Encoding.Default.GetString((byte[])item);
135+
value = Encoding.UTF8.GetString((byte[])item);
135136
if (value == "ip")
136137
{
137138
fetchIP = true;
@@ -199,7 +200,7 @@ private IEnumerable<string> ConvertMasterArrayToList(object[] items)
199200
{
200201
if (item is byte[])
201202
{
202-
value = System.Text.Encoding.Default.GetString((byte[])item);
203+
value = Encoding.UTF8.GetString((byte[])item);
203204
if (value == "ip")
204205
{
205206
fetchIP = true;

0 commit comments

Comments
 (0)