in reply to Freecell Dealer
The first character is always a Greek Gamma, the second is always a o-umlaut or o-diaeresis (or maybe it's a Greek Omicron?). The third character encodes the card's suit: u-acute = hearts, a-underscore(?) = diamonds, capital Enya = clubs, a-acute = spades.This happens when UTF-8-encoded bytes get interpreted as CP437-encoded bytes:
$ echo '♣ ♦ ♥ ♠' | iconv -f cp437 # my system is UTF-8 ΓÖú ΓÖª ΓÖÑ ΓÖáThe author of the code assumed that your command line would understand UTF-8, but you are probably running the code in Windows cmd.exe, which doesn't. According to Wikipedia, you may still see those characters if you print qq{\x{03}\x{04}\x{05}\x{06}}, although they are not formally defined as part of the code page.
|
|---|