0

Good day :)

I'm trying to display some Unicode text (Выход) on a Button. C# uses UTF-16 encoding but I'm reading my data from a UTF-8 encoded file so I take the necessary steps to ensure that I've read the data correctly. In debug mode I see that the string is correct but on the UI (after a .Text = ... call) the text appears as %. Any ideas?

Thank you.

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by PoovenM
0

There was a logically error on my part: I had translated from UTF-8 to UTF-16 twice :\ The Button Control works as expected.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.