Questions tagged [windows-1252]

Windows-1252 or CP-1252 is a character encoding of the Latin alphabet. It is the default character encoding used by text editors in the English version of Microsoft Windows. It defines 27 characters not present in the related ISO-8859-1 encoding. Microsoft recommends developers use a Unicode character encoding instead.

The Windows-1252 code page is used by the Windows operating system to display a number of Latin-based languages. This character set mimics the ISO 8859-1 (Latin-1) character set, except that it adds 27 characters for bytes 128-159 which are undefined in ISO 8859-1.

The languages represented by CP-1252 include English, Spanish, and various Germanic/Scandinavian languages.

References

180 questions
0
votes
0 answers

What is project encoding in android studio?

I was initially having problem of mismatched File encoding. That i fixed but what does that mean Project encoding and IDE encoding? And which encoding to use and what are the limitations of other encodings? I am new to android and programming too.…
0
votes
1 answer

Why does a CP-1252 ellipsis show up as u with ring above (ů) on some browsers

For some reason, on some browsers, a CP-1252 ellipsis (0x85) is showing up as ů. I believe the server is claiming the page will be in UTF-8 (don't ask me why a UTF-8 server is serving CP-1252, that is out of scope). I would understand throwing a…
Chas. Owens
  • 64,182
  • 22
  • 135
  • 226
0
votes
0 answers

Spanish accented characters in windows-1252 character set

I had issues with accented characters(Spanish) in a csv, when open through excel, which was generated using php (not properly displayed). The encoding was utf-8. I have changed the encoding to UTF-8 with BOM. The issue found solved But..... We need…
Thejas
  • 353
  • 6
  • 19
0
votes
0 answers

Convert micro character for ANSI, I need the unicode of μ

I have a μ character in my mySQL database. I would like to replace it, with the following code: UPDATE produkte.produktliste SET Kurzbeschreibung =REPLACE(REPLACE(Kurzbeschreibung, 'μ', ''), 'μ', ''); The code works, but I can't save the command…
Vidarrus
  • 175
  • 4
  • 18
0
votes
1 answer

Why does my unicode enabled software not recognise 'Š' and other characters in ANSI files? How to fix it?

I have a MFC project which reads and writes from and to ANSI files. The Character Set of the application is set to Unicode. Addendum I do not have the possibility to change/influence the encoding of the input and neither the output file because in…
Marwie
  • 3,177
  • 3
  • 28
  • 49
0
votes
1 answer

How do I set an encoding type on NSInputStream?

I need to stream an image to a .NET backend service using Windows 1252 encoding. So I believe I need to create a NSURLRequest with its HTTPBodyStream set to a NSInputStream which is created with image data. And I need the encoding to be set to…
Steve Moser
  • 7,647
  • 5
  • 55
  • 94
0
votes
0 answers

Reading accented characters (á) C# UTF-8 / Windows 1252

I am trying to read a file that has some letters that aren't showing up correctly when I am trying to convert the file to XMl. The letters come up as blocks when I open them in notepad++, but in the original document they are correct. An example…
Toby Jackson
  • 223
  • 2
  • 3
  • 7
0
votes
4 answers

Find hex (windows1252) string within a string and convert it - Javascript

I have a WebSocket that deliver text strings to my page from different services. Some of these strings contain strange characters. Sometimes i receive strings like: "stuff stuff %91quoted stuff%92 stuff" and similar. I found that this specific…
Plastic
  • 9,874
  • 6
  • 32
  • 53
0
votes
1 answer

How can Euro sign character be a value higher than 0xFF in Win-1252 and Latin9?

There's a gap in my knowledge about charsets, encodings, etc. In the Windows-1252 and ISO/IEC 8859-15 (Latin-9) code-pages, the value of the Euro sign (€) is given as 0x20AC--which is 8364 in decimal! But how can that be when the idea is that any of…
DBedrenko
  • 4,871
  • 4
  • 38
  • 73
0
votes
1 answer

Special characters (ANSI?) returned by libcurl

I am trying to parse a web page with libcurl in C. The source webpage looks like this. “We don’t have to settle for the limitations of the past. We can examine and reexamine our old ideas.” However, when it returns it seems to replace the…
woahguy
  • 261
  • 3
  • 13
0
votes
1 answer

Override incorrect declared text encoding in XML document using XMLHttpRequest

Our app is receiving data from a source with incorrect XML headers. Although the workaround in that post works (inserting an nginx proxy), we'd like to find a client-side solution, if there is one. So, is there a way to intercept an XML document and…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
0
votes
0 answers

Windows to UTF-8 Character Encoding Behaviour Query

A simple query about expected behaviour when compiling Windows-1252 characters under UTF-8. When building using an ant task on java source code it seems that some weird character encoding occurs. For certain fields characters that are normally…
CoD
  • 53
  • 5
0
votes
1 answer

Jquery ajax call and charset windows-1252

Dear stackoveflow, I have this problem. I'm working with an old version of mssql (2000) that has all the tables encoded in windows 1252 (and that's it). I can write and read succesfully with php using this line:
0plus1
  • 4,475
  • 12
  • 47
  • 89
0
votes
1 answer

Convert Windows-1252 file into UTF-8 file

Hello I am having some issues with this simple task of conversion. Here is my code bellow (rough but not so complex): FileInputStream fis = new FileInputStream ("file"); BufferedReader reader = new BufferedReader(new…
Xorsist
  • 207
  • 2
  • 4
  • 11
0
votes
0 answers

How to encode System::String so that it displays text with Windows-1252 encoding?

I have a Windows Form with a serialPort component and I use the DataReceived event handler to process the data in the receive buffer. I use the ReadExisting method which returns a String^ since it is the most reliable way I can collect all the data…
1 2 3
11
12