Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Commented Issue: Error when running NPOI with Mono C# compiler version 2.0.1.0 [4547]

$
0
0
<p>Dear developers,</p>
<p>&nbsp;</p>
<p>I get an error when running applications using NPOI under mono: </p>
<p>&nbsp;</p>
<p>Unhandled Exception: System.ArgumentException: Encoding name &#39;UTF-16LE&#39; not supported</p>
<p>Parameter name: name</p>
<p> at System.Text.Encoding.GetEncoding (System.String name) [0x00000] </p>
<p> at NPOI.Util.StringUtil.PutUnicodeLE (System.String input, System.Byte[] output, Int32 offset) [0x00000]</p>
<p>&nbsp;</p>
<p>Thank you for help,</p>
<p>h2o</p>

Comments: ** Comment from web user: firda **

Latest news:
1. Changing the code from Encoding.GetEncoding("UTF-16LE") to Encoding.Unicode works fine in all versions (both .NET and Mono 2.x and should work in Mono 3.x)
2. Fixed in Mono 3.x (beta - not stable yet)


Viewing all articles
Browse latest Browse all 1621

Trending Articles