Skip to content

Commit 1c36fbc

Browse files
committed
Fix TestUnicodeUtil: Use IOUtils.ENCODING_UTF_8_NO_BOM instead of non-existent CHARSET_UTF_8
1 parent f865281 commit 1c36fbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Lucene.Net.Tests/Util/TestUnicodeUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public void TestUTF8toUTF16Exception(byte[] invalidUtf8, bool shouldThrow)
353353
public void TestTryUTF8toUTF16()
354354
{
355355
string unicode = TestUtil.RandomRealisticUnicodeString(Random);
356-
var utf8 = new BytesRef(IOUtils.CHARSET_UTF_8.GetBytes(unicode));
356+
var utf8 = new BytesRef(IOUtils.ENCODING_UTF_8_NO_BOM.GetBytes(unicode));
357357

358358
bool success = UnicodeUtil.TryUTF8toUTF16(utf8, out var chars);
359359

0 commit comments

Comments
 (0)