For questions about code that deals with any kind of Cyrillic (including the original Cyrillic script and the modern Cyrillic alphabets, such as the Russian alphabet).
Questions tagged [cyrillic]
563 questions
0
votes
1 answer
Python __file__ variable returns 'encoding error'
So my script is in the folder which contains cyrillic symbols in the path and the __file__
variabale returns "encoding error" instead of a real path.
Adding the following line doesnt help
# -*- coding: cp1252 -*-
What should I do?
Version of python…

Vladimir
- 601
- 2
- 7
- 13
0
votes
1 answer
PHP: Encoding non ISO-8859-1 charactrers into utf8
I would like to know how could I enconde russian/hindi/chinese... characters into utf8. I know about the functions utf8_decode/utf8_encode, but they only work with ISO-8859-1.
Is there in php a more generic function that do they same task with any…

Ignacio Alorre
- 7,307
- 8
- 57
- 94
0
votes
1 answer
SimpleXML outputs unicode in a strange way
I use simpleXML to process xml file. It has Cyrillic characters. I also use dom_import_simplexml, importNode and appendChild to copy trees from file to file and place to place.
At the end of processing I do print_r of resulting simpleXmlElement and…

ba3a
- 330
- 1
- 6
- 17
0
votes
1 answer
SQLJocky: Incorrect encoding of received text
I've implemented simple web server to have proxy to MySQL using 'sqljocky' package.
And I have issue with character encoding, cyrillic glyphs displays incorrectly:
ÐавÑдов ÐиÑалий instead of Давыдов Витайлий
EDIT: Table collation is…

Geradlus_RU
- 1,466
- 2
- 20
- 37
0
votes
2 answers
Write Cyrillic to RDF file using jena library
I have an extracted Cyrillic content from a HTML page to a text file. The Cyrillic is OK in this file. Then I use this file to create a RDF file using Jena. Here is my code:
private void createRDFFile(String webContentFilePath) throws IOException {
…

vikifor
- 3,426
- 4
- 45
- 75
0
votes
2 answers
how to str_replace Ѓ (cyrillic)
How can i replace the cyrilian sign Ѓ with a
? This one doesn't work: $card = str_replace('Ѓ ', '
', $card); This one doesn't work either: $card = str_replace( array('ѓ', 'Ѓ'),'
', $card )
? This one doesn't work: $card = str_replace('Ѓ ', '
', $card); This one doesn't work either: $card = str_replace( array('ѓ', 'Ѓ'),'
', $card )

user2233811
- 1
- 1
0
votes
1 answer
How to use cyrillic in python IMAP search?
How can I use cyrillic symbols in imapObj.search()?
I am doing the following IMAP search:
imapObj.search("utf-8", "(SUBJECT '%s')" % u"кириллица".encode("utf-8"))
And it doesn't work.

Sergey
- 425
- 1
- 4
- 11
0
votes
1 answer
What do I have to do to make R&OS PDF 0.11.6 support Cyrillic, using ttf2ufm?
I'm involved in a pretty big and complex svn project in Netbeans. I'm not really experienced in PHP, more like basic knowledge level. I'm stuck with the rendering of the PDF report file for a customer who uses Bulgarian language (Cyrillic win1251 or…

user2533240
- 1
- 1
0
votes
1 answer
Google Places API - search place name by cyrillic parameter
I am using Google Places API to send request for places around me and I set the 'name' parameter to filter by name of place.
The thing is it all works good for latin names, but I want to search for places written in my native language (using…

Speed Demon
- 691
- 1
- 9
- 21
0
votes
1 answer
Python letters duplicates replace in Unicode string
I need to replace two mistyped letters in a string, for example "bbig". But it works only for Latin Letters, not for Cyrillic. I am using Python version 2.6.6 under Centos Linux.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
def reg(item):
…

vvchik
- 1,210
- 1
- 8
- 16
0
votes
1 answer
Python/Mysql Russian INSERT
I have run into the following error when trying to do an INSERT in Russian:
sql = """SELECT provider FROM main_app_provider WHERE provider LIKE %s"""
cursor.execute(sql, args)
[ print statement ]
SELECT provider FROM main_app_provider WHERE…

David542
- 104,438
- 178
- 489
- 842
0
votes
0 answers
iTextRendered - Russian Characters in PDF
I'm using iText2.0.8 to generate PDF files.
In brief here's what the code looks like:
FileOutputStream fOut = new FileOutputStream(fileFullPath);
ITextRenderer renderer = new ITextRenderer();
renderer.setDocumentFromString(str); //str is HTML…

Brams
- 309
- 1
- 5
- 20
-1
votes
1 answer
Cyrillic text in Java
I'm trying to transfer Russian text to an Excel or SQLite or to any other program. The result is always the same: Абиссинская кошка.
I understand that something with the encoding.
I tried
String myString = "some cyrillic text";
byte…

vladussr
- 1
-1
votes
1 answer
Control of terminal game with cyrillic symbols
I have a Snake game in terminal, it works well with WASD control, but i want to add ЦФЫВ control(this is Cyrillic symbols). Here is example of code
int keyBoard;
switch (keyBoard = _getch()) {
case 'ы':
y = y + 1;
…

игорь кочнов
- 5
- 2
-1
votes
1 answer
FFmpeg, Icecast and ice_name in Cyrillic
To set stream names (-ice_name), I need to use Cyrillic characters. But on Icecast server I get hieroglyphs.
If I use software other than ffmpeg, then everything is displayed fine. But I need to use ffmpeg exactly.
Here's the…