Questions tagged [cp1251]

Windows-1251 (a.k.a. code page CP1251) 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. In modern applications, Unicode is a preferred character set.

Windows-1251 or code page CP1251 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. In modern applications, Unicode is a preferred character set.

Source and more information: Windows-1251 on the English Wikipedia

76 questions
2
votes
2 answers

How decode windowsCP1251 percent encoded String ? Swift 4 ios 11

How to decode String from percent encoded windowsCP1251? replacingPercentEscapes(using: String.Encoding.windowsCP1251) now is obsolete removingPercentEncoding uses utf8
user3672430
  • 106
  • 1
  • 5
2
votes
1 answer

How convert win1251 encoding to UTF8 inside Kotlin?

I am making HTTP request to page. This page have cyrillic characters. How I can convert answer in CP1251 to UTF8? Here is my code. package bash import com.github.kittinunf.fuel.httpGet import com.github.kittinunf.result.Result fun main(args:…
Jakeroid
  • 205
  • 2
  • 11
2
votes
2 answers

(Python) Incorrect string value (CP1521 to UTF8)

There is a problem with .json file, which contains cyrillic symbols. How to convert CP1251 to UTF-8? (temp_data.decode('utf-8') has no effect, such as ensure_ascii=False in .dumps) import json def load_data(filepath): with open(filepath,…
Double_Mind
  • 59
  • 1
  • 9
2
votes
1 answer

MySQL: mix of encoding in same column

I use OCS Inventory for inventorying of our PCs. It works almost fine, but... but 99% of these PCs works under Windows(R): XP and Seven. And there no any standard for WMI information. For example, OCS Agent (resident program on target PC, which…
Troublemaker-DV
  • 174
  • 1
  • 11
2
votes
1 answer

How can I convert a cp1251 byte array to a utf8 String?

We don't have the cp1251 code page available on a phone, so new String( data, "cp1251" ) doesn't work. We need a function with signature something like String ArrayCp1251toUTF8String(byte data[]);
Andrey
  • 21
  • 1
  • 3
2
votes
1 answer

Troubles with cyrillic encoding in PHP MySQL site

Have a problem with the cyrillic encoding cyrillic data from mysql displayed correct, but when I add some cyrillic text on the page I get someting like this ывааапв data in MySQl - utf8_general_ci php file: header('Content-Type: text/html;…
jhenya-d
  • 399
  • 7
  • 19
2
votes
1 answer

How to make dired in Emacs use cp1251 under Windows?

I want my default encoding stay utf-8. But when under Windows - I want to see some of my file names in dired using cp1251. (Because of no utf support in Windows) Everything displays like: \361\345\354 So how can I make this: (setq…
Sergey
  • 19,487
  • 13
  • 44
  • 68
2
votes
3 answers

Maven error: unmappable character for encoding Cp1251

Can't compile your project in NetBeans, here is the error: ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 4.094s Finished…
a225892
  • 21
  • 1
  • 2
1
vote
1 answer

Encoding issue while reading Paradox database using Java

I have Java application (using JDK 1.7) which is reading Paradox files (*.db). It works well with Latin characters. I am trying to make this application to display Cyrillic characters correctly, however constantly getting unredable results. …
1
vote
1 answer

changing pdf text encoding

I have a PDF document (that is my schoolbook) and the problem is that although the text is printed normally, it is copied in the form of some random glyphs. I found, that it is because of text being encoded on cp1251 but trying to be decoded as…
lazba
  • 129
  • 9
1
vote
1 answer

How to change encoding on fly in SELECT statement?

I have a table with a column, which has cp1251_general_ci collation. I don't want to change column collation, but I want to get data in utf8 encoding. Is there a way to select any data somehow in a way that it looks just like a data with…
klm123
  • 12,105
  • 14
  • 57
  • 95
1
vote
1 answer

C# russian cp1251 Encode/Decode

I'm using ASCII 1251 table for russian letters. So I need a C# function to convert char to 1251 decimal code and vise versa. For example russian 'а' is 224, 219 is 'Ы'. Are the any way not to use dictionary with hard-coded values for all the…
Punk1503
  • 75
  • 1
  • 6
1
vote
0 answers

ruby on rails convert cp1251 to utf8

I'm using remote server request to get geodata @xml = Net::HTTP.get_response(URI.parse("http://ipgeobase.ru:7020/geo?ip=144.206.192.6")).body The server response comes in cp1251, how to convert it to uft-8?
Vyacheslav Loginov
  • 3,136
  • 5
  • 33
  • 49
1
vote
2 answers

Perl - copy to clipboard in cp1251

Trying to copy to clipboard text in cp1251. #!/usr/bin/perl -w use Clipboard; use Encode; my $ClipboardOut = "A bunch of cyrillic characters - а-б-в-г \n"; Encode::from_to($ClipboardOut, 'utf-8', 'cp1251'); …
Disco
  • 9
  • 3
1
vote
2 answers

Convert Subversion commit messages to Unicode

Currently I have a local Subversion repository with a lot of commit messages in cp1251 encoding. Is there any way I can convert all commit messages into utf-8 encoding?
Regent
  • 5,502
  • 3
  • 33
  • 59