Skip to content

Commit 7ca45f8

Browse files
Fix typos. (#290)
1 parent e9778f1 commit 7ca45f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/TileDB.CSharp/CoreUtil.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static (byte[] data, ulong[] offsets) PackStringArray(string[] strarray,
112112
}
113113
else
114114
{
115-
bytes_size = Encoding.ASCII.GetByteCount(strarray[i]);
115+
bytes_size = Encoding.UTF8.GetByteCount(strarray[i]);
116116
}
117117
totsize += bytes_size;
118118
}
@@ -140,7 +140,7 @@ public static (byte[] data, ulong[] offsets) PackStringArray(string[] strarray,
140140
}
141141
else
142142
{
143-
bytes = Encoding.ASCII.GetBytes(strarray[i]);
143+
bytes = Encoding.UTF8.GetBytes(strarray[i]);
144144
}
145145
bytes.CopyTo(data, idx);
146146
idx += bytes.Length;

0 commit comments

Comments
 (0)