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

How can I determine the index in codepage 850 for a char in C#?

I have a text file which is encoded with codepage 850. I am reading this file the following way: using (var reader = new StreamReader(filePath, Encoding.GetEncoding(850))) { string line; while ((line = reader.ReadLine()) != null) { …
Hulda
  • 275
  • 1
  • 4
  • 7
2
votes
1 answer

Cyrillic characters are distorted when sending a letter

When ending a letter to Outlook mail from an Oracle DBMS that contains Cyrillic characters, the output is question marks. I do not understand how to convert the string so that the text is readable. I ship using the following method: CREATE OR…
gregor
  • 271
  • 4
  • 10
2
votes
1 answer

WIndows 11 Default API and UTF Encoding

In Windows 10 and earlier, I have been able to transfer strings in my local codepage 1250 or with CP_ACP with the following code successfully to UTF-8. But in Windows 11, this does no longer work with CP_ACP (while 1250 still works). It seems that…
Rene
  • 3,746
  • 9
  • 29
  • 33
2
votes
0 answers

Is ISO8859-15 (Latin-9) a full subselect of UTF-8?

I might need to convert an Oracle DB from ISO8859-15 (Latin-9) to UTF-8? So my question is: Is ISO8859-15 (Latin-9) a full subset of UTF-8? Because than there should be a lower risk of things going wrong. Any experience here?
stan
  • 41
  • 5
2
votes
1 answer

Filename formatting in Python under Windows

I have two distincts files called: '╠.txt' and '¦.txt' Such simple code: files = os.listdir('E:\pub\private\desktop\') for f in files: print f, repr(f), type (f) which would return ¦.txt '\xa6.txt' ¦.txt '\xa6.txt'
da_chinese
  • 23
  • 3
2
votes
2 answers

Scrubbing ASCII Control Characters From Web Service Output

I was having some difficulties with some text I was receiving from a Web Service I consume recently. The web service sends back XML, which is fine, but we're getting ASCII control characters in the middle of some of the XML. I wanted to paste an…
omatase
  • 1,551
  • 1
  • 18
  • 42
2
votes
1 answer

Converting flat file 8859-1 encoding to OLE DB Destination using codepage 1252

Input flat file is encoded with ISO 8859-1. The database has default codepage 1252. Is the only way to change codepages to use a Data Conversion transformation? Yes, I know that 8859-1 and 1252 are very close, but I am trying to do this formally…
lit
  • 14,456
  • 10
  • 65
  • 119
2
votes
2 answers

Delphi 2009 read oem from string without setCodePage

procedure p; var f:TextFile; oemst:OemString;///declared as OemString = Type AnsiString(CP_OEMCP); begin AssignFile(f,fileName); reset(f); read(f,oemSt); ShowMessage(oemst); end; In order to see within the show message the oemst in…
none
  • 4,669
  • 14
  • 62
  • 102
2
votes
1 answer

SQL query generates undefined charmap

This is the code I'm running, a SELECT command in a firebird database. I wish to write the contents of a certain table in a .txt file: import fdb con = fdb.connect(dsn=defaultDSN, user=defaultUser, password=defaultPassword) cur =…
user12725052
2
votes
0 answers

Running SQLCMD from task scheduler messes up character encoding

I have a view which contains special (Danish/Norwegian) characters. I want to select some rows and export them in a csv file. I created a batch file sqlselection.bat and contains the following code: "C:\Program Files\Microsoft SQL…
2
votes
2 answers

ANSI Encoding implementation for Silverlight

I need Encoding implementation of some codepage in my Silverlight app. Particularly I need to read non-Engligh file names from zip-archive (being opened Application.GetResourceStream). Silverlight contains only Unicode encodings (Encoding.UTF8,…
Shrike
  • 9,218
  • 7
  • 68
  • 105
2
votes
0 answers

Using Greek Code Page (1253) in locale Turkish (1254) Computer

In my server application I am trying to parse my responses with UTF-8 in Greek but since my local char set is 1254 thus I can not reach every Greek character. I tried setting my threads local as 1253 but it did not work. I want to know if there is…
cangermi
  • 29
  • 2
2
votes
1 answer

How can I stop my vbscript from writing a different type of file than the one I read?

I am reading and writing a file in VBScript. My input file starts with these five characters:
2
votes
0 answers

Convert UTF-16 to code-page and remove unicode text direction control characters?

Short version Given:         1/16/2006 2∶30∶11 ᴘᴍ How to get: 1/16/2006 2:30:11 PM rather than: ?1/?16/?2006 ??2:30:11 ?? Background I have an example Unicode (UTF-16) encoded string: U+200e U+0031 U+002f U+200e U+0031 U+0036 U+002f U+200e U+0032…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
2
votes
3 answers

Python converting code page character number to unicode

By default, print(chr(195)) displays the unicode character at position 195 ("Ã") How do I print chr(195) that appears in code page 1251, ie. "Г" I tried: print(chr(195).decode('cp1252')), and various .encode methods. Thanks to everyone's help, I now…
iantresman
  • 289
  • 2
  • 13