Cliloc problem in Ultima.dll
I get this exception:
where GetClilocString is this:
Any suggestion?
I get this exception:
Code:
Warning: error in GetClilocString from CraftHelper: System.ArgumentException: Bu
ffer dei caratteri di output troppo piccolo per contenere i caratteri decodifica
ti. Codifica 'Unicode (UTF-8)', fallback 'System.Text.DecoderReplacementFallback
'.
Nome parametro: chars
in System.Text.Encoding.ThrowCharsOverflow()
in System.Text.Encoding.ThrowCharsOverflow(DecoderNLS decoder, Boolean nothin
gDecoded)
in System.Text.UTF8Encoding.GetChars(Byte* bytes, Int32 byteCount, Char* char
s, Int32 charCount, DecoderNLS baseDecoder)
in System.Text.DecoderNLS.GetChars(Byte* bytes, Int32 byteCount, Char* chars,
Int32 charCount, Boolean flush)
in System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteC
ount, Char[] chars, Int32 charIndex, Boolean flush)
in System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteC
ount, Char[] chars, Int32 charIndex)
in System.IO.BinaryReader.InternalReadOneChar()
in System.IO.BinaryReader.Read()
in System.IO.BinaryReader.PeekChar()
in Ultima.StringList..ctor(String language)
in Midgard.CraftHelper.GetClilocString(Int32 position)
where GetClilocString is this:
Code:
public static string GetClilocString( int position )
{
string clilocName = String.Empty;
try
{
if( m_StringList == null )
m_StringList = new StringList( "ENU" );
clilocName = m_StringList.Table[position] as string;
}
catch( Exception e )
{
Console.WriteLine( "Warning: error in GetClilocString from CraftHelper: {0}", e.ToString() );
}
return clilocName;
}
Any suggestion?