Questions tagged [windows-1251]

Windows-1251 is a popular 8-bit character encoding, designed to cover languages that use the Cyrillic script such as Russian, Bulgarian, Serbian Cyrillic and other languages

Windows-1251 is a popular 8-bit character encoding, designed to cover languages that use the Cyrillic script such as Russian, Bulgarian, Serbian Cyrillic and other languages. It is the most widely used for encoding the Bulgarian, Serbian and Macedonian languages[citation needed].

In modern applications, Unicode is a preferred character set. 2.4% of all web pages use Windows-1251 in July 2014.1

Windows-1251 and KOI8-R (or its Ukrainian variant KOI8-U) are much more commonly used than ISO 8859-5[citation needed]. In the future, both may eventually give way to Unicode.

Wikipedia Source

MSDN

35 questions
0
votes
2 answers

Incorrect output to the console in C

The purpose of the program is to get a symbol and then immediately display it on the screen. But the problem is that it outputs a different character, or nothing at all. I found that the output is in Windows-1251 encoding, and the input is in CP866.…
0
votes
1 answer

Save cyrillic while change String encoding from UTF-8 to windows-1251 in Java

I try to swap encoding from UTF-8 to windows-1251, but all my solutions works only with latin letters. So I want to change encoding in cyrillic String. How can I do it correctly? All solutions with creating a new String from bytes don't save…
0
votes
0 answers

All cyrillic symbols are wrongly encoded in network inspector in android studio

All cyrillic symbols which I get in json body are encoded in the folliwing way inside network inspector: { "Магазин": "dd29a406-1484-11ed-bb9a-0050569d338f", "Р�стория": "d07df264-d546-4292-a8df-3d8c5253aed2", …
0
votes
1 answer

Convert text value in SQL Server from GB2312 to WINDOWS-1251

I have a column in SQL Server with GB2312 Chinese_PRC_CI_AS encoding. How can I convert and save the text in WINDOWS-1251 encoding? I would like to do thing in a query on SQL Server. Any tips?
Vicc
  • 1
  • 2
0
votes
1 answer

How to encode utf-8 request body to windows 1251 in go

My task is to get a json string from request body in utf-8 and encode it to win1251, so i could save it the db in win1251. data, err := io.ReadAll(c.Request.GetBody()) if err != nil { panic(err) } enc := charmap.Windows1251.NewEncoder() win,…
timelord
  • 11
  • 1
0
votes
1 answer

Matching Windows-1251 encoding character set in RegEx

I need to create a regular expression, that would match only the characters NOT in the windows-1251 encoding character set, to detect if there are any characters in a given piece of text that would violate the encoding. I tried to do it through the…
0
votes
1 answer

How to remove unknown chars on string in windows-1251 charset

I have a text which cannot be converted to windows-1251 charset. For example: 中华全国工商业联合会-HelloWorld I have a method for converting from UTF8 to windows-1251: static string ChangeEncoding(string text) { if (text == null || text == "") …
Dilshod K
  • 2,924
  • 1
  • 13
  • 46
0
votes
0 answers

Java decode windows-1251 rtf to utf-8

I have a .rtf file. The file is in windows-1251 encoding. I need to save this string to another file, and I need to save it in utf-8 encoding. And I need this file to be well-readable in result. So, I try a lot of variants, I read java-docs, and…
0
votes
1 answer

Google recaptcha v3 is not showing if URL contents url encoding

I have successfully installed google recaptcha v3 on my site and there is some strange thing: it works fine on every url like "site.com/url" or "site.com/url.php" or "site.com/url.html" but it does not work on url that contents url-encoding symbols…
Krechet USA
  • 15
  • 1
  • 3
0
votes
1 answer

C#: WebClient - Cant Unrecognize cyrillic characters

Trying to parse site: link Code to download content: WebClient client = new WebClient(); client.Encoding = System.Text.Encoding.ASCII; // OR UTF8 string reply = client.DownloadString(url); Response:
0
votes
0 answers

Notepad++ XML Tools plugin parsing encoder error for windows-1251

I've got an issue with Notepad++ plugin, XML Tools. It used to work fine with windows-1251 encoding, yet now it fails even on the simplest of XML: <Файл> On every…
SSV
  • 860
  • 3
  • 11
  • 25
0
votes
1 answer

How to pass cyrillic symbols with POST request with flask

I have such a route: @app.route('/wikidata/api/v1.0/ask', methods=['POST']) def get_tasks(): print(request.data) print(request.json) return jsonify(1) I send a request: curl -i -H "Content-Type:application/json" -X POST -d…
elfinorr
  • 189
  • 3
  • 12
0
votes
1 answer

Hex to Windows-1251 with JavaScript

I'm trying to convert a hexadecimal string to string with Windows-1251 encoding. I need to use JavaScript. I've tried using this sample that someone posted: var win1251 = new TextDecoder("windows-1251"); for (var i = 0x00; i < 0xFF; i++) { var…
bfury
  • 99
  • 2
  • 12
0
votes
0 answers

Convert C# string to win-1251

I have the following string: string str = "Здравей!"; I have to pass it to a printer to print it. The printer method to print is datecs_test.PrintTaggedText(str); But on print I don't get the same string content but some strange symbols. They told…
0
votes
0 answers

windows-1251 encoding on C# mono project under Ubuntu 16.04

my difficult life force me to use "windows-1251" encoding on C# under Ubuntu 16.04. I use "mono" to run C#. both commands Encoding.GetEncoding(1251) Encoding.GetEncoding("windows-1251") give this exception System.NotSupportedException: Encoding…