extended-ascii

Console.Write() - display extended ascii chars?

我怕爱的太早我们不能终老 提交于 2019-12-19 07:57:19
问题 I am able to correctly display the standard ASCII symbols (up to 127) like "heart", "note" you know what I mean. I would like to also display ones that I can use for drawing walls (like U0205) but it does not work..well, it works but it looks like "?". Any way how I can display them? Thank you. 回答1: Console mode apps are restricted to an 8-bit code page encoding. The default on many machines is IBM437, the code page that matches the old IBM PC character set. You can change the code page by

How to create scrollable console application that support ANSI escape code sequences

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 03:12:45
问题 I am making some assumptions here on technology based on what I know, but other technology recommendations are welcome. My goal: Write an ANSI Art viewer that as closely as possible resembles viewing on a DOS machine as possible, preferably without the overhead of running dosbox. This will run on a Raspberry Pi. I have gotten my console to properly cat an ANSI with proper characters, colors, etc. The catch with the "viewer" is that I would like to be able to use the arrow keys to scroll up

How to post Extended ASCII chars (0x80 to 0xFF) using PostMessage in Delphi?

倖福魔咒の 提交于 2019-12-12 17:50:41
问题 I am writing a Keyboard Mapper Application in which I need to send Extended ASCII chars (0x80 to 0xFF) to Current Window. I have tried everything like below function ConstructLParam(vKey: Word): LongInt; // Cardinal; begin { ConstructLParam } if vKey > $FF then Result := LongInt(MapVirtualKeyW(vKey, 0) and $00000FFF or $F000) shl 16 or 1 else Result := LongInt(MapVirtualKey(vKey, 0) and $000000FF or $FF00) shl 16 or 1; end; { ConstructLParam } procedure PostCharacter(TargetWinHandle: Hwnd;

In SQL Server bulk insert, how do I use higher ASCII characters for Field and Row terminators

让人想犯罪 __ 提交于 2019-12-12 03:17:54
问题 I have a bulk insert that works on SQL Server 2000 that I'm trying to run on SQL Server 2008 R2, but it's not working as I had hoped. I've been successfully running these bulk inserts into SQL 2000 with the following: Format file: 8.0 9 1 SQLCHAR 0 0 "ù" 1 Col1 "" 2 SQLCHAR 0 0 "ù" 2 Col2 "" 3 SQLCHAR 0 0 "ù" 3 Col3 "" 4 SQLCHAR 0 0 "ù" 4 Col4 "" 5 SQLCHAR 0 0 "ù" 5 Col5 "" 6 SQLCHAR 0 0 "ú" 6 Col6 "" 7 SQLCHAR 0 0 "" 0 Col7 "" 8 SQLCHAR 0 0 "" 0 Col8 "" 9 SQLCHAR 0 0 "" 0 Col9 "" Data file:

how notepad++ picture extended chars

吃可爱长大的小学妹 提交于 2019-12-11 04:53:31
问题 I'm working with binary data and want to find out that is wrong. I use notepad++ to preview binary, I have set View->Show Symbol->Show All Characters to see all chars, but there still exists some chars I cannot identify, e.g. â©ÎÅ . The problem is that ASCII has strong standart for number 0 to 127, extended ASCII may be picturing in many ways, so I have problem with chars what represents numbers 128 to 255. Is there any table of notepad++ extended chars or some option to make it show symbol

What's the proper technical term for “high ascii” characters?

旧街凉风 提交于 2019-12-10 14:11:24
问题 What is the technically correct way of referring to "high ascii" or "extended ascii" characters? I don't just mean the range of 128-255, but any character beyond the 0-127 scope. Often they're called diacritics, accented letters, sometimes casually referred to as "national" or non-English characters, but these names are either imprecise or they cover only a subset of the possible characters. What correct, precise term that will programmers immediately recognize? And what would be the best

C++ Printing special ascii characters to the Windows console

核能气质少年 提交于 2019-12-08 03:33:18
问题 After 2 hours of searching and trying various methods, I'm pulling my hair out trying to print special ascii characters to the console! (C++) typedef unsigned char UCHAR; int main() { UCHAR c = '¥'; cout << c; return 0; } Why does this code print Ñ (209) instead of ¥ (165)??? I've tried: SetConsoleCP(CP_UTF8); SetConsoleOutputCP(CP_UTF8); but neither seems to do anything, no matter which values I pass to it. Someone else suggested that the console's font needed to be changed through the

C++ Extended Ascii characters

核能气质少年 提交于 2019-12-07 21:12:16
问题 How to detect the presence of Extended ASCII values (128 to 255) in a C++ character array. 回答1: Please remember that there is no such thing as extended ASCII. ASCII was and is only defined between 0 and 127. Everything above that is either invalid or needs to be in a defined encoding other than ASCII (for example ISO-8859-1). Please read The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!). Other than that: what's wrong

Extended Ascii doesn't work in console!

巧了我就是萌 提交于 2019-12-07 17:55:33
问题 For example System.out.println("╚"); displays as a ?, same goes for System.out.println("\u255a"); Why doesn't this work? Stdout does indeed support these characters so I don't get it. 回答1: See this question. When Java’s default character encoding is not UTF-8 — as is the case, it seems, on Windows and OS X, but not Linux — then characters which fail to encode are converted to question marks. You can pass the correct switch ( -Dfile.encoding=UTF-8 on some terminals, but I don’t have a Windows

C++ Printing special ascii characters to the Windows console

允我心安 提交于 2019-12-07 07:30:30
After 2 hours of searching and trying various methods, I'm pulling my hair out trying to print special ascii characters to the console! (C++) typedef unsigned char UCHAR; int main() { UCHAR c = '¥'; cout << c; return 0; } Why does this code print Ñ (209) instead of ¥ (165)??? I've tried: SetConsoleCP(CP_UTF8); SetConsoleOutputCP(CP_UTF8); but neither seems to do anything, no matter which values I pass to it. Someone else suggested that the console's font needed to be changed through the registry. But that's ridiculous. I don't want my end users to have to start changing registry values simply