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
13
votes
6 answers

PHP Convert Windows-1251 to UTF 8

I have a small html code and I need to convert it to UTF-8. I use this iconv("windows-1251", "utf-8", $html); All text converts correctly, but if text for example in tag ..., then it don't convert text and I see somethig like this…
user2058653
  • 703
  • 2
  • 9
  • 23
6
votes
3 answers

error: unmappable character (0x98) for encoding windows-1251

I have a problem with the assembly of the project: D:...\Main.java:112: error: unmappable character (0x98) for encoding windows-1251 robot.getBrowserControl().findElement(By.xpath("//div[.='НАПИСАТЬ']")).click(); This error in…
GRbI3yH
  • 105
  • 1
  • 1
  • 8
6
votes
2 answers

Decoding a url-encoded windows-1251 (cp1251) string with JavaScript

I have faced a problem, unfortunately, I have not found a correct solution: I need to decode url-slice that is encoded with windows-1251 (cp1251). I know there are theese methods - decodeURI() and decodeURIComponent(), but they work for UTF-8 only…
Romanzhivo
  • 161
  • 1
  • 3
  • 11
4
votes
1 answer

What going on? GIT see changes without changes

Git see changes just after clean cloning. I just do clone project from server and one of my files already marked as changed. nick@DESKTOP-NUMBER MINGW64 /d $ git clone http://nick@host/nick/test.git Cloning into 'test'... remote: Enumerating…
VitaliyAT
  • 43
  • 4
4
votes
1 answer

HttpClient throws System.ArgumentException: 'windows-1251' is not a supported encoding name

I am writing WinPhone 8.1 app. Code is very simple and works in most cases: string htmlContent; using (var client = new HttpClient()) { htmlContent = await client.GetStringAsync(GenerateUri()); } _htmlDocument.LoadHtml(htmlContent); But…
2
votes
1 answer

String.getBytes("8bit encoding") returns 2 bytes per symbol

I'm trying to understand character encoding for Strings in Java. I'm working on Windows 10 and the default character encoding is windows-1251. it is 8-bit encoding character. So it must be 1 byte for 1 symbol. So when I call getBytes() for a String…
Ilyas
  • 33
  • 5
2
votes
3 answers

Why does Python String concatenation work with Russian text but string.format() does not

I'm trying to parse (and escape) rows of a CSV file that is stored in Windows-1251 character encoding. Using this excellent answer to deal with this encoding I've ended up with this one line to test the output, for some reason this…
Jason Sperske
  • 29,816
  • 8
  • 73
  • 124
1
vote
0 answers

decodeURIComponent() throws malformed URI sequence

I have chars in a response that can not be decoded. Charakters like ß that represents ß and – that represents a - are causing the exception and these chars like ß and - is what i want at the end. What i am doing right now is replacing the chars…
Rocky
  • 27
  • 7
1
vote
1 answer

Java String: Treating/converting system native character encoding

When accessing Windows System resources (related to audio) I found that Windows provides description strings of said resources using its own charset, while Java treats these strings as it treats all the strings by default: unicode-encoded. So,…
1
vote
1 answer

How to convert Windows-1251 string to HEX in PHP

I have a windows 1251 encoded string that needs to be converted to HEX or binary (but if I manage to convert it to one of the two, I'll be able to convert it to the other). The string comes from a cash register so there is nothing I can do about the…
happybit
  • 11
  • 2
1
vote
2 answers

Is there transliteration from UTF-8 to CP1251 when one symbol substitutes with several symbols?

I use function iconv with option translit. Is there transliteration from UTF-8 to CP1251 when one symbol substitutes with several symbols? Where I can search for that information? I am using iconv.
MayRiv
  • 35
  • 1
  • 5
1
vote
2 answers

powershell invoke-webrequest with codepage win 1251

I need to get data from a page that has the win-1251 codepage. $SiteAdress = "http://www.gisinfo.ru/download/download.htm" $HttpContent = Invoke-WebRequest -URI $SiteAdress echo $HttpContent And it shows me: > StatusCode : 200…
1
vote
1 answer

incompatible character encodings utf-8 and windows-1251, installing ruby, ruby on rails

I don't know much about this stuff, help me, please. I was installing ruby railsinstaller-windows on step 9 there was a problem What should I do? I need a good explanation.
1
vote
1 answer

Convert from mysql cp1251_general_ci collation (Windows-1251) into UTF-8 php

I have a mysql varchar(50) row in cp1251_general_ci collation. After mysql_fetch_row in php i got a $string. Then i do the following: echo mb_detect_encoding($string,'CP1251,UTF-8,Windows-1251'); // echoes Windows-1251 $string =…
cofirazak
  • 562
  • 6
  • 16
0
votes
0 answers

Cyrillic labels of values displayed incorrectly

I have a Russian language dataset in .dta format. Stata displays labels in a wrong way as a bunch of symbols. Seems that the issue is that when the file was created it was encoded as Windows-1251 and Stata uses different encoding to display…
1
2 3