Den 09-01-2013 18:56, Andres G. Aragoneses skrev:
On 09/01/13 17:21, Esben Laursen wrote:
Hi All,
I sometimes get this execption to the console on my app. I have not
really identified what part of my code that is generating the exception
(I use xml serializers extensively). The app does not
Mono 2.10.8.1
I am reading bytes from hardware device as a stream, as abbreviated here:
byte[] buffFromDrv = new byte [BIG_ENOUGH];
bytesRead = thePipes.pRdDataFromDrv.Read(buffFromDrv, readPosition,
bytesToread);
string s = System.Text.UTF8Encoding.UTF8.GetString(buffFromDrv); // also
tried
On Jan 10, 2013, at 1:28 PM, mickeyf mic...@thesweetoasis.com wrote:
The string itself displays as expected, but shows a length of twice the
number of characters, as if String.Length is reporting the number of bytes
(UTF16) rather than the number of Unicode characters in the string.
In all
Might still be worth opening a bug, so other users can find it and add more
info if they're also experiencing it :)
---
Regards,
Daniel
Sent from my phone - please excuse any typos.
On 11/01/2013 12:42 AM, Esben Laursen hy...@hyber.dk wrote:
Den 09-01-2013 18:56, Andres G. Aragoneses skrev: