(2d9e06198) Attempt to fix incorrectly displayed Chinese capture device names (haven't been able to reproduce)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
@@ -260,6 +261,12 @@ namespace Barotrauma
|
||||
}
|
||||
return string.Join(separator, texts);
|
||||
}
|
||||
|
||||
public static string EnsureUTF8(string text)
|
||||
{
|
||||
byte[] bytes = Encoding.Default.GetBytes(text);
|
||||
return Encoding.UTF8.GetString(bytes);
|
||||
}
|
||||
|
||||
public static List<string> GetAll(string textTag)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user