Scanner scanned value incomplete in textbox

Chen Qian 1 Reputation point
2021-07-23T02:44:26.787+00:00

Guys:
I have GS1-128 Barcode such like the pic at below:
117244-image.png

And I will using a scanner to analysis data of this barcode.
Then I put a textbox in winform and try to scan with a scanner, but it is very strange thing happened.

In windows 10 20H2 with .net 4.8 the value of textbox is "24043112\u001d103100403\u001d37192\u001d90913";
117219-image.png

But in windows 10 1809 with .net 4.8 the value of textbox is "240431121031004033719290913";
117198-image.png

Then I have tried to scan this barcode in notepad++.
both of windows version was getting well which was the same value.
117272-image.png

Finnaly, I put the value which scanned in notepad++ in textbox, the value was complete with GS code.

117220-image.png

And I have compared the unicode configuration of windows, it was same.
So, I think .net was supported this unicode ,but there is some configuration of windows was different, then the textbox get different value.

Could any one help me analysis issue?
Thanks.

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.