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
1
vote
0 answers

How can I read an ISO-9660 (or any other FS) with file names in non-UTF (CP866 in my case) codepage?

Actually the question is in the topic. I've got an old CD with ISO-9660/Juliet FS with filenames in CP866 (Neuro Burning ROM did a lot crazy things like that back in times). The disc mounts and works under Windows perfectly. I know it is CP866…
Sap
  • 914
  • 1
  • 6
  • 20
1
vote
1 answer

How to get the codepage currently used in local computer?

In a Python 3.8 script, I'm trying to retrieve the codepage which is currently used in my computer (OS: Windows 10). Using sys.getdefaultencoding() will return the codepage used in Python ('utf-8'), which is different from the one my computer…
Max1234-ITA
  • 147
  • 1
  • 1
  • 8
1
vote
1 answer

Can't import characters due to incorrect code page

I have an SSIS job to import data from a flat file into an SQL Server table. I'm having an issue regarding the encoding of the source file and destination table. The file is an UTF8 encoded CSV file with some standard accented latin characters (ãóé,…
R. M.
  • 23
  • 5
1
vote
0 answers

How to get utf-8 accent code from an accented character?

I'm working on a program in C, I need to be able to get the code of a character, but in the case of an accented character like "á", it must return the code of the character "a" and the accent (´). in: á out: "á"=C3 A1 "a"=61 "´"=C2 B4 Is there a…
1
vote
0 answers

Escape 0x1b;t;0x7 command code For printer

How I can translate following working VisualBasic code to Python? print #1,Chr$(&H1B) & "t" & Chr$(7)(running on Windows) I tried this (for Ubuntu): kkm_port = open(stg.kkm_port,"a") print >> kkm_port,chr(0x1B) print >> kkm_port,"t" …
mic
  • 11
  • 1
1
vote
0 answers

What should be the size of buffer to store the locale name on Windows?

I want to store the locale name and code page appended to it in a buffer, what should be the ideal size of the buffer?. From winnt.h // Maximum Locale Name Length in Windows // Locale names are preferred to the deprecated LCID/LANGID concepts. // //…
confucius_007
  • 186
  • 1
  • 15
1
vote
2 answers

How to find OS code page number in .NET Core?

I'm need to get Windows default code page in a .NET Core app. I.e. 1252 on English systems, 1251 on Cyrillic systems, 1253 on Greek, etc. Previously in .NET Framework 4 and Mono it was easily do via Encoding.Default. After the program moved to .NET…
1
vote
1 answer

How to encode a STRING variable into a given code page

I've got a string variable containing a text that I need to encode and write to a file, in UTF-16LE code page. Currently the following code generates a UTF-8 file and I don't see any option in the statement OPEN DATASET to generate the file in…
Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
1
vote
1 answer

Standardizing "character set ranges" as internationally defined values

Lets say I have a field which accepts A-Z,a-z,0-9 . If I'm trying to communicate to someone, via documenation or api creation "what" my code can accept, i HAVE to say: A-Z,a-z,0-9 Now that in my mind this is restrictive and error prone. Compare…
siliconpi
  • 8,105
  • 18
  • 69
  • 107
1
vote
0 answers

Why does MSBuild uses code page 0 instead of system code page, and how do I fix it?

Attempting to build a file with MSBuild gives me this warning: c:\repo\file.cpp(58): warning C4819: The file contains a character that cannot be represented in the current code page (0). Save the file in Unicode format to prevent data loss…
Andreas
  • 5,086
  • 3
  • 16
  • 36
1
vote
1 answer

Robocopy command in Windows 10 struggles with German letters (ü, ä, ö), and chcp to change the code page has apparently no effect

On my Windows 10 machine I am trying to run a "robocopy" command (from a .bat file) to backup files. Everything is fine as long as the paths (to folders to backup) do not contain letters like ö, ü, ä which whoever is inevitable as this is a German…
1
vote
1 answer

Defining _POSIX_C_SOURCE as 2 causes error when changing code page on Windows CMD with MinGW GCC

I've been writing a Linux program that's meant to write non-English characters on the terminal, I've recently been porting it to Windows, and I've run into some issues, when trying to change the code page and the font of the terminal, having the…
stayhere
  • 41
  • 6
1
vote
0 answers

Java - Windows-1252 not valid characters

so here´s my problem. I'm trying to read a file encoded in Windows-1252 that contains characters that are not valid with that encoding, if we look at this: https://en.wikipedia.org/wiki/Windows-1252 We can observe that codepoints 129, 141, 143, 144…
starkspc
  • 11
  • 3
1
vote
2 answers

How to output IBM-1027-codepage-binary-file?

My output (csv/json) from my newly-created program (using .NET framework 4.6) need to be converted to a IBM-1027-codepage-binary-file (to be imported to Japanese client's IBM mainframe), I've search the internet and know that Microsoft doesn't have…
Luke
  • 1,623
  • 3
  • 24
  • 32
1
vote
2 answers

Is there a way to change the console code page from within Python?

When I type chcp 65001 in the command prompt it changes the active code page. How do I accomplish the same thing from within Python itself? For example, every time I run my .py program, it should automatically change the code page to 65001.
AxeSkull
  • 33
  • 6