codepages

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 is made with Delphi 2006 it work on windows XP embedded When the App is made with Delphi 2010 it does *not work on...

Windows service and default code page/culture setting?

Hi, I'm writing a service that will read a file from a directory, read the contents of the file and process the content. I am having issues with Swedish characters that are read from the file as they are beeing translated into "garbage chars" by the service when they are read. Does anyone know what default code page/culture setting is...

How do you convert posted "english" characters from international PC's in ASP.NET? (ex 2205)

I have a WebForm search page that gets occasional hits from international visitors. When they enter in text, it appears to be plain ASCII a-z, 0-9 but they are printed in bold and my "is this text" logic can't handle the input. Is there any easy way in ASP.NET to convert unicode characters that equate to A-Z, 0-9 into plain old text? Th...

Read data using ODBC ADO.NET from Db2 Codepage 1252 - Euro (€) Symbol is not retrived correctly

In VS 2005 C#, While inserting Euro (€) Symbol into Db2 table, It is storing values correctectly. DISABLEUNICODE=1 parameter helped to store this correctly. But when we try to read from the table, it is giving junk char as below. "Spec GS 1" Same code is working in VB 6.0 ADO Could you please help me. Code: OdbcConnection...

How can I change console font?

I have a problem with output Unicode in Windows XP console. (Microsoft Windows XP [Version 5.1.2600]) First code is that(from http://blogs.msdn.com/b/michkap/archive/2008/03/18/8306597.aspx) #include #include #include int main(void) { _setmode(_fileno(stdout), _O_U16TEXT); wprintf(L"\x043a\x043e\x0448\x043a\x0430 \x65e5\x67...

recognize code page of input string

How to recognize code page of input string, for example if I put something in Cyrillic it should return windows-1251 and when I put string in Chinese it return other code page etc ...

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

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 @c...

Terminology and concepts surrounding the use of code pages

Hello! I'm in the process of researching code pages and have come across many conflicting uses of terminology, even amongst different Wikipedia entries. I just can't find a source of information that spells out the entire character handling process from start to finish. Could someone well versed in this field suggest ways in which the fo...

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

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...

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 regional settings to Polish, whenever we open the executable, the regional settings flip ...

How can I change windows codepage in python?

>>> a = os.popen('chcp 65001') >>> a.read() 'Active code page: 65001\n' >>> a.close() >>> a = os.popen('chcp') >>> a.read() 'Active code page: 437\n' >>> a.close() After I set the codepage to 65001, the next time i call chcp it should say the active codepage is 65001, not 437. I tried this in windows command prompt and it worked. Why ...

How to discover what codepage to use when converting RTF hex literals to Unicode

I'm parsing RTF 1.5+ files generated by Word 2003+ that may have content from other languages. This content is usually encoded as hex literals (\'xx). I would like to convert these literals to unicode values. I know my document's code page by looking for ansicpg (\ansi\ansicpg1252). When I use the ansicpg codepage to decode to Unicode,...

Codepage related problems with MySQL++

Code: mysqlpp::Query acc_query = connection->query("SELECT * FROM accounts;"); The following code produces: _Gfirst = 0x00c67718 "SELECT * FROM accounts;ээээ««««««««юоюою" As in Visual Studio debugger. It appears to cause my query to fail with weird results. Has anyone else encountered it? ...

Looking for an single byte encoding with grave=xC1 acute=xC2 cedilla=xD0

Having trouble finding a code page or other single byte encoding having accents in these positions: grave in xC1 acute in xC2 cedilla in xD0 ...

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 language. I'm guessing that for instance, Windows-1253 (Greek) is the default when installing the...

VS2008 - VB.net Font Dialog - Filter Fonts by Codepage/Language

Update (in response to first answer, from Hans Passant): I guess I didn't explain my use-case well enough. This application will be designed for people to enter data in a "master" language (most likely English, but not necessarily), and then facilitate the entry of translations in another language. This is all done with a rich-text box ...

How to show arbitary characters in c?

warning C4566: character represented by universal-charac ter-name '\u2E81' cannot be represented in the current code page (936) Sometimes we need to display text in various languages such as Russian,Japanese and so on. But seems a single code page can only show characters of 1 single language ,how can I show characters in var...

Recover from using bad code page in C#

I have read string "ńîôč˙" from file by using code page windows-1251, instead of using iso-8859-2. It should be some Cyrillic string. How to implement function that will do following in C#: string res = Recover("ńîôč˙"); string Recover(string input) { ??? } Where res is Cyrillic string that I would have got if I used good page wh...