codepages

Which character encoding is the IPython terminal using?

泪湿孤枕 提交于 2019-12-24 00:22:46
问题 I used to think I had this whole encoding stuff pretty figured out. I seem to be wrong because I can't explain what's happening here. What I was trying to do is to use the tabulate module to print a nicely formatted table using from tabulate import tabulate s = tabulate([[1,2],[3,4]], ["x","y"], tablefmt="fancy_grid") print(s) in IPython 3.5.0's interactive console under Windows 10. I expected the result to be ╒═════╤═════╕ │ x │ y │ ╞═════╪═════╡ │ 1 │ 2 │ ├─────┼─────┤ │ 3 │ 4 │ ╘═════╧════

Default code page for each language version of Windows

删除回忆录丶 提交于 2019-12-23 10:53:38
问题 Where can I find information about which code page is default for each language version of Windows? I.e the "ANSI" code page for each language version. I've found the Code Pages Supported by Windows, but I cannot find the defaults for each language. I'm guessing that for instance, Windows-1253 (Greek) is the default when installing the Greek language version. But what about the other code pages? And is Windows-1253 the default for any other language version? 回答1: You can enumerate all the

What is Codepage 0?

我只是一个虾纸丫 提交于 2019-12-22 09:10:17
问题 I'm using the Delphi function StringCodePage I call it on a string returned by a COM function (Acrobat Annotation getContents - see my other posts) and it returns 0. What is 0? Ansi? 回答1: Code page 0 is CP_ACP, current Windows ANSI code page. From Windows.pas: {$EXTERNALSYM CP_ACP} CP_ACP = 0; { default to ANSI code page } From MSDN: CP_ACP The current system Windows ANSI code page. This value can be different on different computers, even on the same network. It can be changed on the same

Advantage Database Index Collation Sequence

纵饮孤独 提交于 2019-12-20 02:16:24
问题 I am converting a Delphi program from the BDE to Advantage Database. On weekends I work on a Win 7 machine using Delphi XE. During the week I work on a Win XP machine using Delphi 7. Advantage tables work fine on the Win 7 machine but when copied to the XP machine they cannot be accessed - Error 5175 the index was created with a different collation sequence I have searched the net, even gone into the Advantage forums but can't find anything helpful. The XP and Win 7 are both set up the same

Codepage 850 works, 65001 fails! There is NO response to “call foo.cmd”. internal commands work fine

五迷三道 提交于 2019-12-19 21:47:20
问题 The question basically explains the problem. I'm using Windows XP Pro Service Pack 3 ComSpec=C:\WINDOWS\system32\cmd.exe I launched the console via Start... Run-dialog... cmd.exe Here is a "view" of my console: The command, then the output (and my // comments) C:\> chcp 850 Active code page: 850 // output is as expected C:\> echo @chcp ^& REM 850>test850.cmd // no output; as ecpected) C:\> type test850.cmd @chcp & REM 850 // output is as expected C:\> call test850.cmd Active code page: 850 //

The encoding that Notepad++ just calls “ANSI”, does anyone know what to call it for Ruby?

邮差的信 提交于 2019-12-18 03:04:28
问题 I have a bunch of .txt's that Notepad++ says (in its drop-down "Encoding" menu) are "ANSI". They have German characters in them, [äöüß], which display fine in Notepad++. But they don't show up right in irb when I File.read 'this is a German text example.txt' them. So does anyone know what argument I should give Encoding.default_external= ? (I'm assuming that'd be the solution, right?) When 'utf-8' or 'cp850' , it reads the "ANSI" file with "äöüß" in it as "\xE4\xF6\xFC\xDF"... (Please don't

What's the difference between an “encoding,” a “character set,” and a “code page”?

巧了我就是萌 提交于 2019-12-17 21:50:42
问题 I'm really trying to get better with this stuff. I'm pretty functional with internationalization concepts like this, but I need to get a better background on the theory behind it. I've read Spolsky's article, but I'm still unclear because these three terms get used interchangeably a LOT -- even in that article. I think at least two of them are talking about the same thing. I suspect a high percentage of developers flub their way through this stuff on a daily basis. I don't want to be one of

Why some characters can not be typed in Python's IDLE?

雨燕双飞 提交于 2019-12-17 20:21:58
问题 I don't know how to explain this, actually I'm looking for the explanation, so I'll just mention some steps to reproduce the issue. Hopefully someone will be able to understand and elaborate: Python 3.5.0 on Windows 8.1. (However this should be reproducible regardless of Python and Windows version.) Having Persian standard keyboard Installed. (It can be downloaded from here. Again I'm sure the problem is not limited to this specific keyboard and there are some characters in some other

Change default code page for debug console in VS10

笑着哭i 提交于 2019-12-13 18:08:06
问题 Currently it defaults to my system locale, which is 932 (Japanese Shift-JIS) in my case, but I want it to be 65001 (UTF-8) by default. I can change the default for a given program by inserting a SetConsoleOutputCP line somewhere in the code and then removing it, but doing it for every program is pretty annoying. Any suggestions? 来源: https://stackoverflow.com/questions/7454111/change-default-code-page-for-debug-console-in-vs10

Windows XP - cmd.exe - Cannot execute batch file after switching to utf8 codepage

梦想的初衷 提交于 2019-12-13 14:33:12
问题 After switching to utf8 codepage with "mode con cp select=65001", batch processing seams to stop working without any error messages. Thus, executing "cmd.exe /c test.bat" in a freshly started console with codepage 437 or 850 being active works fine. Executing "mode con cp select=65001" works fine. Display of UTF-8-characters works fine. Executing something like "echo Hallo!" works fine. But executing "cmd.exe /c test.bat" stops working with no error message displayed. It's not only a display