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
4
votes
2 answers

DELPHI : EEncodingError - Invalid code page on windows xp embedded

Hi I have a application that works well on windows xp pro, windows Visa, windows 7 But when I run it on windows xp embedded it does not work and gives the following error: EEncodingError - Invalid code page When the App was made with Delphi 2006 it…
Charles Faiga
  • 11,665
  • 25
  • 102
  • 139
4
votes
2 answers

How to print French characters with an acute (like 'é') with a Zebra P4t printer

My question is about printing French characters with an acute like: é è à ô etc. with a Zebra P4t printer. Consider the ZPL instructions below: ^XA ^FO20,20 ^CI28 ^A0,20,20 ^FD Amitié ^FS ^XZ I have put these instructions into a file encoded as…
Léa Massiot
  • 1,928
  • 6
  • 25
  • 43
4
votes
6 answers

CodePage ID to CodePage name: GetEncoding equivalent in Delphi?

I'm looking for a Win32 equivalent of the .Net Encoding.GetEncoding Method to be used in Delphi7. What I would like to achieve is to convert a Codepage ID (ie.: 28592) to a Codepage name (iso-8859-2 in this case). I've found a Win32 function called…
Steve
  • 2,510
  • 4
  • 34
  • 53
4
votes
1 answer

Character Sets, Locales, Fonts and Code Pages?

I can't figure out the relation between those terms. I actually need a brief explanation for each and eventually a relation between them. Moreover, where do all these stuff reside? Where are they implemented? Is it the job of the operating system to…
MyNameIsUser
  • 119
  • 9
4
votes
3 answers

How do I change the code page MS Visual Studio 2008 uses to open files?

I have a cpp file that uses ibm cp437 and Visual C++ keeps reading it with windows-1252. How do I make Visual C++ use the right code page for the file?
Spin City
  • 183
  • 2
  • 2
  • 13
4
votes
2 answers

Java 1.6 Windows-1252 encoding fails on 3 characters

EDIT: I've been convinced that this question is somewhat non-sensical. Thanks to those who responded. I may post a follow-up question that is more specific. Today I was investing some encoding problems and wrote this unit test to isolate a base…
James Cooper
  • 2,320
  • 2
  • 23
  • 23
4
votes
2 answers

German Umlaut displayed wrong despite correct Charset

I am encountering a weird problem regarding the encoding of my files. I have a site which is multilingual; Users can set this viá a dropdown on the site itself, the default value being German. When the user logs in,…
4
votes
2 answers

Encoding html in ANSI vs UTF-8 w/o BOM

What's the difference between writing in Ansi and UTF-8 (without BOM) for example for a PHP or an HTML document, and then uploading them on a web server? Both documents have the tag in their head. If someone writes simply with…
Lukáš Kozák
  • 41
  • 1
  • 1
  • 2
4
votes
5 answers

Relation between .NET Encoding and Characterset

What's relation between CharacterSet here: http://msdn.microsoft.com/en-us/library/ms709353(VS.85).aspx and ascii encoding here: http://msdn.microsoft.com/en-us/library/system.text.asciiencoding.getbytes(VS.71).aspx
programmernovice
  • 3,841
  • 11
  • 43
  • 63
4
votes
1 answer

Encoding ☺ as IBM-437 fails while other valid characters like é succeed

☺: >>> bytes('☺','ibm437') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.3/encodings/cp437.py", line 12, in encode return codecs.charmap_encode(input,errors,encoding_map) UnicodeEncodeError:…
Fredrick Brennan
  • 7,079
  • 2
  • 30
  • 61
4
votes
1 answer

SSIS Transfer SQL Server Objects Task loses accents in transferred data

I have an SSIS package with a Transfer SQL Server Objects Task step that transfers tables (schema and data) from one database to another. The source and the destionation databases have different collation. (I don't know whether it's relevant…
Vizu
  • 1,871
  • 1
  • 15
  • 21
4
votes
2 answers

String-to-byte sequence translation using a fixed encoding, preferably UTF-8

In a windows c++ console application I would like to read a password from command-line input. The password is used for encryption (and later decryption, maybe elsewhere in the world on a windows pc with a different locale). So I worry about locales…
degski
  • 642
  • 5
  • 13
3
votes
3 answers

Delphi decode json/utf8 escaped text

I'm writing a module for complicated application and my module should process json response, returned by web server. So, my issue is about how can I decode such kind of text: \u041f\u043e\u0438\u0441\u043a \u043f\u043e…
kseen
  • 359
  • 8
  • 56
  • 104
3
votes
2 answers

Restrict user input to characters in IBM System i 00280 code page

We need to restrict user input in a classic ASP web site to the characters allowed by the 00280 code page of IBM System i. Is there a way to do it in a sane way besides having a (JavaScript|VBScript) function checking every character of an input…
Albireo
  • 10,977
  • 13
  • 62
  • 96
3
votes
1 answer

Strings transcoding in Java

I've found a piece of code recently, which does the following: String s = ... // whatever ... s = new String(s.getBytes(myEncoding), myEncoding); For me it appears to be absolutely non-sense. Is it possible that under certain circumstances (some…
edio
  • 652
  • 1
  • 8
  • 21