aGerman wrote:Unfortunately it seems this character is not supported inside of the cmd window while it works perfectly for a lot of other special characters.
Difference, I think, is that the other characters in your example do exist in both ANSI and OEM codepages (even if they may have different numeric values between them) which allows unicode<->oem<->ansi conversions to work "losslessly". The "…" character does not exist in the OEM codepage at all.
Ed Dyreen wrote:Unfortunately your hack'ish example doesn't work here.
Code: Select all
>chcp 1252 &title title ½ à ╗ &chcp 850
Actieve codetabel: 1252
Actieve codetabel: 850
Gives title ½ à {square}
A few things to check... First off, if you run the above at the cmd prompt, you'll get exactly what you typed, in this case "½ à ╗". This is because the command line itself is unicode aware, so it takes the string as entered without performing any codepage conversions. My snippet was meant to be included in a batch file.
Then, you need to leave "chcp 1252" on its own separate line. This because the parser works one line at a time, and the translation is based on the codepage in effect when the (entire) line is parsed. In other words, the "title" command is parsed and built before "chcp 1252" has a chance to execute.
Lastly, doublecheck and make sure that the characters in the batch file you saved are indeed 0xAB, 0x85, 0xBB. How you get them there depends on the editor you use, and sometimes on "magical" codepage conversions copy/paste does on its own.
Liviu