when i select and copy this glyph from email message: £ (0x00a3)
and then run:
message=Clipboard.GetText();
if(message==""){
Console.WriteLine("There is nothing on your clipboard.");
Environment.Exit(0);
}
else{ Console.WriteLine(message); }
reports: "nothing on clipboard"
seems that all glyphs between 00a1-00ff exhibit same behavior.
I've looked at overloads for Clipboard.GetText ... to no avail.
Try with
message=Clipboard.GetText(TextDataFormat.UnicodeText);
The TextDataFormat.UnicodeText specifies the standard Windows Unicode text format.
However also with a simple GetText I am not experiencing the missing char
Clipboard.SetText("£");
string s = Clipboard.GetText();
Console.WriteLine(s);
I get back the £
char. (By the way it is 0x00A3)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.