Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Select something in this document, like this:

Empty


The `args.SelectedText`  is "СÊó"

But if you use Crtl + C to copy it out,the result is correct.("小鼠")


And there also some problems in text selection. You can select a half character:

Empty

If your selection begins with the half character, the whole sentence will go wrong.


I use these code to fix encoding bug:

    Encoding gbEncoding = Encoding.GetEncoding("GB2312");

    Encoding isoEncoding = Encoding.GetEncoding("ISO-8859-1");

    byte[] byteString = isoEncoding.GetBytes(args.SelectedText);

    string result = gbEncoding.GetString(byteString);