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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.