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
1 answer

How to find the code page ID of an Outlook message file (.msg)

I want to get the Code Page ID that was used when writing an email (outlook .msg file). The property that holds this information is PidTagMessageCodepage. But I cannot find how to access it with C++. The message file (.msg) that I am trying to read…
Niroshan
  • 2,064
  • 6
  • 35
  • 60
1
vote
3 answers

How to display umlauts in chm Table of Contents?

I'm creating the german version of a chm help file. My problem is in Table of Contents umlauts are not displayed. I assume it is because of code page. The hhc file is ANSI. Converting it to Unicode doesn't help - it displays different, but still…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
1
vote
1 answer

convert ANSI data to Unicode

i have a text file saved by encoding 1256. as far as my Windows CE 5.0 on my device does not support that code page i can't open the file by that encoding in .NET CF, but the OS supports Unicode. (i showed up some hard code strings in my form) how…
losingsleeep
  • 1,849
  • 7
  • 29
  • 46
1
vote
2 answers

PySpark failing to decode 'cp1047' when processing mainframe input

In one of my requirements is to decode a byte-array based on a cp1047 code page. A sample of my code is: ebcdic_str = input_bytes.decode('cp1047') The above code using python works correctly but while executing the same operation as part of the…
1
vote
4 answers

LGHT0311 error on RTF file to be shown in licence dialog

Have a .wxl file for pt-BR and codepage 860, for some reason the included wxl file for the rest of the wix UI for pt-PT and pt-BR are using codepage 1252. C:\delivery\Dev\wix35_public\src\ext\UIExtension\wixlib\LicenseAgreementDlg.wxs(35) : error…
Greg Domjan
  • 13,943
  • 6
  • 43
  • 59
1
vote
1 answer

Properly parsing mixed codepage strings?

I have this weird state that my db got into. Basically, some text is in mixed mode. windows-1252 and miscoded utf-8. Here's a sample: "donc d'être transparent avec lui et surtout pas de minimiser à l’oral pour le charger à l'écrit". If I treat the…
Mike D
  • 101
  • 7
1
vote
1 answer

Reading values with dataset messes up specific language characters dependending on client OS

I have made a windows application using C# that creates a dataset with data from a Dbase database file using a OleDBConnection. My problem is that this runs just fine on my own computer (swedish) but when i run this on my server (english) the…
Andreas
  • 301
  • 1
  • 4
  • 16
1
vote
1 answer

How to use System.Text.Encoding.GetEncoding("") function for other charset than 8 supported in C# - .Net Core?

I am trying to use an encoding page that is not in the common initialized encoding pages in C#. var greekEncoding = System.Text.Encoding.GetEncoding("1253"); using (var httpClient = new HttpClient()) { var httpContent = new…
1
vote
2 answers

JsonNode.Parse: error parsing text with accents

I am trying to parse a Latin text with the Parse method of JsonNode from System.Text.Json class. But when the text contains accents, the method returns escape characters. var jsonString = File.ReadAllText(path, Encoding.GetEncoding(1252)); …
1
vote
0 answers

Visual Studio 2019 - open files with specific encoding (e.g. 437)

I got some legacy projects, with a source code encoding of IBM437/CP437. They need to be encoded that way at the moment, so please refrain from recommending a switch to utf-8. So far I have unfortunately not found exactly what I need. I experimented…
1
vote
0 answers

Error: "Run-Time Check Failure #2 - Stack around the variable 'output' was corrupted." while using "MultiByteToWideChar" function

I'm trying to create a function that will convert string into wstring. I made a loop with the most fitting codepages (in my opinion), and then I started getting this error I've had lots of issues with codepages, and spent a lot of time resolving…
Furxy Fluke
  • 51
  • 1
  • 6
1
vote
0 answers

GetCPInfoEx undocumented behavior/errors

GetCPInfoEx fails with codepage 20949 and 1147. For 20949, the error in GetLastError is "The specified resource name cannot be found in the image file" For 1147, GetLastError is empty. Both these code pages should be valid according to msdn, are…
simendsjo
  • 4,739
  • 2
  • 25
  • 53
1
vote
0 answers

Iconv: Convert Windows-1252 to UTF-8 with replacement character for invalid chars?

I want to convert Windows-1252 text to UTF-8. The Windows-1252 text can contain invalid bytes (e.g. 0x90). I need to replace invalid bytes with a replacement character ('?'). Example: "a[0x90]b" (Windows-1252) -> "a?b" (UTF-8) I tried with…
pulp
  • 698
  • 1
  • 6
  • 13
1
vote
2 answers

Character Block is not showing the right output in Turbo Assembler

I tried to create a fuel pump with only character blocks in strings but when I compiled it using TASM this is the output the dosbox gave to me. The data that I stored are mostly character blocks some of them are half blocks up and down the most…
1
vote
2 answers

code page values

apart from 1252 what other code page values can be used with getencoding() in vb.net? System.Text.Encoding.GetEncoding(1252).Getstring()
gudluck
  • 61
  • 1
  • 4
  • 9