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

how can I convert String to Data

I have next: deviceName = String.init(bytes: temp.prefix(upTo: index), encoding: .windowsCP1251) where temp - [UInt8]. My question is: how can I convert this string back to Data? I'm trying to convert like this: newDataName =…
Sergey Hleb
  • 152
  • 1
  • 16
0
votes
1 answer

RESTHeart with windows-1251 charset

MongoDB server; Text data in windows-1251 charset. RESTHeart server. PHP with window-1251 charset making a request to RESTHeart. Text data is broken To get text "back" I use this code (from utf-8 to 1251, then from utf-8 to 1251, then back to…
Alexey
  • 71
  • 7
0
votes
0 answers

PHP mb_convert_encoding, issue with double decoding

I have some problems with mb_convert_encoding. In the database I have table: topics (latin1_swedish_ci) Website is in UTF-8. And db connection to MySQL is in UTF-8 too. I can't change connection settings, but I can change db table. I was thinking…
0
votes
1 answer

Nokogiri XML builder with cyrillic text (windows 1251)

I am trying to create an XML file from an array. This is my builder code: def buildXML(formattedText) builder = Nokogiri::XML::Builder.new do |xml| xml.products { formattedText.each do |lineItem| xml.item { …
mohnstrudel
  • 639
  • 8
  • 22
0
votes
1 answer

How can I send cyrillic emails with Mandrill and Windows1251 encoding?

I have started to use Mandrill to send all mails from our site but faced a problem with encoding. Encoding of the site is still Windows1251 / CP-1251 (I really don't have time to change it). I can send emails in English. But when I try to send…
Kir Mazur
  • 997
  • 2
  • 13
  • 27
1 2
3