Questions tagged [codepages]

Code page is another term for character encoding. It consists of a table of values that describes the character set for a particular language.

Code page is another term for , popular with some vendors (IBM, Microsoft, Oracle, etc). It consists of a table of values that describes the character set for a particular language.

See also http://en.wikipedia.org/wiki/Code_page

458 questions
13
votes
2 answers

python Convert Encoding:LookupError: unknown encoding: ansi

Because my cdv file is encoded as utf-8, opening it with Excel will cause distortion, and when I then convert it to the standard ANSI encoding, I get this error: code: import chardet def…
BruceZhong
  • 343
  • 1
  • 3
  • 11
11
votes
2 answers

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) does not add extra encoding providers

I am developing a netcoreapp2.0 console application and I need access to the whole encoding package from .NET. I have already added the System.Text.Encoding.CodePages Version=4.4.0 Nuget package from this page to my project and cleaned/restored the…
Rojan Gh.
  • 1,062
  • 1
  • 9
  • 32
11
votes
7 answers

Dummy's guide to Unicode

Could anyone give me a concise definitions of Unicode UTF7 UTF8 UTF16 UTF32 Codepages How they differ from Ascii/Ansi/Windows 1252 I'm not after wikipedia links or incredible detail, just some brief information on how and why the huge variations…
Arec Barrwin
  • 61,343
  • 9
  • 29
  • 25
10
votes
3 answers

What exactly is Unicode codepage 1200?

While investigating some localization options, I stumbled across this as a save option in Visual Studio. What is Unicode code page 1200 exactly? The Microsoft documentation page Code Page Identifiers describes: Unicode UTF-16, little endian byte…
muffin
  • 259
  • 1
  • 3
  • 11
10
votes
2 answers

Default code page for each language version of Windows

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…
dalle
  • 18,057
  • 5
  • 57
  • 81
8
votes
1 answer

F# - card suits not displaying in console

I'm making console based card game in f# and I'm struggling with displaying card suits using unicode chars. Mapping suit-to-char is represented as following function: let suitSymbol = function | Spades -> "\u2660" | Clubs -> "\u2663" …
Muchtrix
  • 83
  • 4
7
votes
2 answers

What is Codepage 0?

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?
Toby Allen
  • 10,997
  • 11
  • 73
  • 124
7
votes
4 answers

Why ANSI Code-Page and Console Code-Page are different?

Microsoft Windows provides several functions to query the current code-page: GetACP, GetConsoleOutputCP, GetConsoleCP. They return different values. For example, on my machine, GetACP returns 1252 while GetConsoleOutputCP and GetConsoleCP return…
Amir Gonnen
  • 3,525
  • 4
  • 32
  • 61
7
votes
1 answer

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

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…
AXO
  • 8,198
  • 6
  • 62
  • 63
7
votes
2 answers

Get Haskell programs to assume a UTF8 locale under wine

I am trying to use GHC on wine to build one of my Haskell applications for windows. So far, this works well, but I am stuck running my test suite, which is intended to be run in an UTF8-locale (LANG=C.utf8 for example.) Unfortunately, under wine,…
Joachim Breitner
  • 25,395
  • 6
  • 78
  • 139
7
votes
4 answers

How do I print a bullet character to the console?

This is my code: Console.WriteLine("•"); Or this: Console.WriteLine("\u2022"); The result (on my computer): *beep* The desired result: • How can I make the above character appear on my console? I understand where the beep comes from, as the…
Kendall Frey
  • 43,130
  • 20
  • 110
  • 148
7
votes
1 answer

UTF-8 to ANSI Conversion using C#

I'm a .NET developer and was asked to do an application that converts html files to ANSI in C#. ANSI is necessary because the converted files will run on a Visual Fox Pro application. The basic logic is ready the problem is with the conversion…
John Peter
  • 73
  • 1
  • 1
  • 5
7
votes
4 answers

How do you specify a Java file.encoding value consistent with the underlying Windows code page?

I have a Java application that receives data over a socket using an InputStreamReader. It reports "Cp1252" from its getEncoding method: /* java.net. */ Socket Sock = ...; InputStreamReader is = new…
Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
7
votes
1 answer

LINQ-to-Entities with 8-bit ASCII data

I have an interesting issue handling 8-bit "ASCII" characters in LINQ-to-Entities and am hoping someone can give me a tip. I have inherited a SQL Server 2000 database that has some pseudo-encrypted columns where they just XOR'd the string with 0xFF.…
jwh20
  • 646
  • 1
  • 5
  • 15
6
votes
2 answers

Can a file be read and written right back with small changes without knowing its encoding in C#?

I need to download from FTP over 5000 files being .html and .php files. I need to read each file and remove some stuff that was put there by virus and save it back to FTP. I'm using following code: string content; using (StreamReader sr = new…
MadBoy
  • 10,824
  • 24
  • 95
  • 156
1
2
3
30 31