Use stream position instead of counting read bytes.#199
Conversation
FileStream.Read returns (bytes read, buffer), not just bytes read as the buffer is passed by reference. This is a bit unintuative, but checking the position is clear and less error prone.
|
so now:
.... you may have not saved as utf-8 ? (with a BOM or not, I don't think it changes the loss of the "€") Still, Awesome progress (I don't know if the last issue is Pythonnet related or an example that gets too complicated, if it's just an example issue, I'm dying to get that dev2) |
|
Right, well I think as a demo it's now adequately showing how Python and c#
|
|
no problem, thanks! |
|
@stonebig @tonyroberts - this demo also has to be adapted to python 3 for On Mon, Apr 4, 2016 at 1:22 PM, stonebig notifications@github.com wrote:
|
|
trying to get this example working in all current combinations could drown the project resources. |
FileStream.Read returns (bytes read, buffer), not just bytes read as the
buffer is passed by reference. This is a bit unintuative, but checking the
position is clear and less error prone.