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
3
votes
3 answers

How to read EBCDIC data with a non standard codepage, and not mess up numbers?

Here is one for the old(er) hands :-) I'm reading a binary dump from a mainframe DB2 table. The table has varchar, char, smallint, integer and float columns. To make it interesting, the DB2 uses code page 424 (Hebrew). I need my code to be…
GilShalit
  • 6,175
  • 9
  • 47
  • 68
3
votes
0 answers

Linux file size, java.nio and CP1252 multibyte character set

I have an Cp1252 file that I want to read as binary. ls -al from the terminal shows its size is 10 bytes. This java snippet however reports 18 bytes: Path path = Paths.get(lfile); SeekableByteChannel sbc = Files.newByteChannel(path,…
stuhpa
  • 306
  • 3
  • 13
3
votes
1 answer

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

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…
White-Gandalf
  • 31
  • 1
  • 4
3
votes
1 answer

Convert string from codepage 1252 to 1250

How can I convert one String with characters decoded in codepage 1252 into a String decoded in codepage 1250. For example String str1252 = "ê¹ś¿źæñ³ó"; String str1250 = convert(str1252); System.out.print(str1250); I want to find such convert()…
rafalry
  • 2,620
  • 6
  • 24
  • 39
3
votes
2 answers

How to use Delphi XE's TEncoding to save Cyrillic or ShiftJis text to a file?

I'm trying to save some lines of text in a codepage different from my system's such as Cyrillic to a TFileStream using Delphi XE. However I can't find any code sample to produce those encoded file ? I tried using the same code as…
jonjbar
  • 3,896
  • 1
  • 25
  • 46
3
votes
2 answers

How to echo an 0x96 character in a batch file?

I've got a TFS project with a 0x96 character in its title, e.g. "Project – X" which I need to reference in a batch file. The problem is that this particular dash is represented by 0x96 (and not 0x20) which is a control character in Unicode (û in…
timB33
  • 1,977
  • 16
  • 33
3
votes
1 answer

linux what locale to set for cp850

I want to set a locale in a script so that cp850 codepage is used for the string that is handled by the script which will be written in a json-file. I have found I can set LANG=de_DE.utf8 and I have found that some locales have a .cpXXX in the…
Stajl
  • 53
  • 4
3
votes
2 answers

ETL Matching Code Page SSIS Data Flow

I have found plenty online, but nothing specific to my problem. I have a CSV rendered in code page 65001 (Unicode). However, in the Advanced section of the Flat File Connection Manager, the column is data type string [DT_STR] My database table I…
Pablo Boswell
  • 805
  • 3
  • 13
  • 30
3
votes
1 answer

How to disable character codes 178 (0xB2) (²) , 179 (0xB3) (³), and 185 (0xB9) (¹) as digits?

With SWI-Prolog when generating digits using code_type(X,digit). the result is the expected ASCII character codes and 178 (0xB2) ² 179 (0xB3) ³ 185 (0xB9) ¹ e.g. code_type(X,digit). X = 48 ; X = 49 ; X = 50 ; X = 51 ; X = 52 ; X = 53 ; X = 54…
Guy Coder
  • 24,501
  • 8
  • 71
  • 136
3
votes
2 answers

Get the user's codepage name for functions in boost::locale::conv

The task at hand I'm parsing a filename from an UTF-8 encoded XML on Windows. I need to pass that filename on to a function that I can't change. Internally it uses _fsopen() which does not support Unicode strings. Current approach My current…
Brandlingo
  • 2,817
  • 1
  • 22
  • 34
3
votes
2 answers

How to set the code page of a Delphi 2006 executable

We're programming in Delphi 2006, using Multilizer 5.1 to translate the program. Now we've to added Polish as a new language in Multilizer. But when we open our executable, Multlizer says "Polish is not supported by the codepage". If we adjust our…
Liezzzje
  • 430
  • 2
  • 6
  • 17
3
votes
1 answer

HTML/CSS use DOS Codepage 437 font / missing glyphs

I want to use the classic DOS Codepage437 fonts on a HTML web page. I've included a *.ttf file with CSS and normal letters do work. But there a some missing glyphs, that are interpreted as control characters (for example the nice dos style smileys…
Patrick K
  • 63
  • 8
3
votes
1 answer

working with ansi codes in vb.net

I have ran in to a problem while writing a program for school that converts a string like abc to bcd, a becomes b and b becomes c and you can see the rest. For i = 0 To length - 1 If (Asc(justatext.Substring(i, 1)) >= 65 And…
user4086096
3
votes
3 answers

Codepages and encodings

Before anyone recommends that I do a google search on this, I have. I just need a bit more clarity around what codepages and encodings. If I use UTF8 encoding, and use an italian code page and then a french code page, does this mean ill get…
Razor
  • 17,271
  • 25
  • 91
  • 138
3
votes
2 answers

How to get encoding from MAPI message with PR_BODY_A tag (windows mobile)?

I am developing a program, that handles incoming e-mail and sms through windows-mobile MAPI. The code basically looks like that: ulBodyProp = PR_BODY_A; hr = piMessage->OpenProperty(ulBodyProp, NULL, STGM_READ, 0, (LPUNKNOWN*)&piStream); …
SadSido
  • 2,511
  • 22
  • 36