cyrillic

Search cyrillics in custom listview does not work android

混江龙づ霸主 提交于 2019-12-12 03:23:14
问题 I am trying to develop search application with cyrillics. I have one edittext and listview. I would like to search the listview with the content of edittext. I am having custom list view. Here is my code: Here is the main activity: package com.searchapplication; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.text.Editable; import android.text.TextWatcher; import android.view.Menu; import android.view.MenuItem; import android.widget.EditText; import

Broken Cyrillic file name when uploading to server

浪子不回头ぞ 提交于 2019-12-11 20:37:48
问题 I have this php function: function upload_file($f,$fn){ switch($f['type']){ case 'image/jpeg':$image = imagecreatefromjpeg($f['tmp_name']);break; case 'image/png':case 'image/x-png':move_uploaded_file($f['tmp_name'],'../images/pc/'.$fn.'.png');break; case 'image/pjpeg':$image = imagecreatefromjpeg($f['tmp_name']);break; echo $f['type'],'<br />'; } if(!empty($image)) imagejpeg($image,'../images/pc/'.$fn.'.png'); } where $fn = "нова-категория" but when I upload the renamed file to server - the

Cyrillic characters in Python 2.7

时光怂恿深爱的人放手 提交于 2019-12-11 20:05:29
问题 The function returns places in radius using the Google Places API. To be exact, I use this library to handle the task. The problem is that cyrillic symbols are shown like this: ÐО Сбербанк РоÑÑии, КиевÑкое отделение â„–14 I tried these suggestions. I also tried this: pname = place.name uni = unicode(place.name) And this: convertedname = pname.encode(encoding='UTF-8', errors='strict') Nothing helped. What else can I try? 回答1: My terminal and browser encoding is utf

How to write and read Cyrillic properly from file?

别等时光非礼了梦想. 提交于 2019-12-11 11:06:14
问题 I have the following code: #include <iostream> #include <string> #include <fstream> using namespace std; int main() { string rus = "абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦШЩЪЫЬЭЮЯ"; string lat = "abvgděëžzijklmnoprstufhcčšŝŭeûâABVGDĚËŽZIJKLMNOPRSTUFHCČŠŜŬEÛÂ"; ifstream gdata("data.txt"); if(!gdata){ gdata.open("data.txt"); } string temp; while(gdata){gdata >> temp;} gdata.close(); ofstream sdata("data.txt", ios::out | ios::trunc); for(unsigned int i = 0; i < temp.length(); i

python 3.4.2 typing cyrillic fails

守給你的承諾、 提交于 2019-12-11 10:42:30
问题 This is a really bizarre problem. I don't know where to start. I am on OS X, Terminal.app, UTF-8. If I type cyrillic in bash, it works fine. If I open python2.7, I can type cyrillic characters fine. If I open python3.4 (macports), I can type print( ' but when I switch my keyboard to cyrillic, none of my cyrillic keypresses register. I can still type numerals and other symbols, but not the cyrillic letters. What is going on? How can I get the console to register cyrillic keypresses? I can pipe

Cyrillic characters trouble using @font-face

左心房为你撑大大i 提交于 2019-12-11 00:11:22
问题 I've finished with psd and used Caviar Dreams font in my project. This font contains cyrillic characters and they appear in photoshop, but when I use the same font with @font-face (font squirrel webfont generator) - all cyrillic characters appear as generic font characters (arial for example). Latin characters appear properly. All the best wishes to somebody who can help me with this problem! fontsquirrel stylesheet.css file: @font-face { font-family: 'caviar_dreams'; src: url('caviardreams

Cyrillic symbols in Eclipse

前提是你 提交于 2019-12-10 23:30:01
问题 I am writing a Java program with a GUI that will have Cyrillic text in some labels. When I create label JLabel lbl = new JLabel("Име на обект"); everything is fine and when my program starts it is also properly displayed. But I changed the PC I was working on and copied my project to my home PC. On that system, all Cyrillic text in my code now looks like JLabel lbl = new JLabel("РћС‚ Дата:*"); and is displayed in the same way when the program runs. How can I make Eclipse show my Cyrillic

What is right way to use cyrillic in python lxml library

风流意气都作罢 提交于 2019-12-10 15:58:13
问题 I try to generate .xml files fith cyrillic symbols within. But result is unexpected. What is the simplest way to avoid this result? Example: from lxml import etree root = etree.Element('пример') print(etree.tostring(root)) What I get is: b'<пример/>' Istead of: b'<пример/>' 回答1: etree.tostring() without additional arguments outputs ASCII-only data as a bytes object. You could use etree.tounicode(): >>> from lxml import etree >>> root = etree.Element('пример') >>> print(etree.tostring(root)) b

HTML in Russian

谁说胖子不能爱 提交于 2019-12-08 06:44:46
问题 I have to design a Russian version of a web. I get the text from a translator. I copy it in the code of the Dreamweaver but it doesn't work. I have the usual head: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> What should I do? 回答1: You should change encoding of your file to UTF-8. You can do this process when you Save As file in Notepad or you can use Notepad++( Encoding -> Encode in UTF-8 ) for it. 回答2: The document http://www.mig-marketing.com/proves/nando/ru/

'Wide character in subroutine entry" - UTF-8 encoded cyrillic words as sequence of bytes

南楼画角 提交于 2019-12-07 00:26:31
问题 I am working on an Android word game with a large dictionary - The words (over 700 000) are kept as separate lines in a text file (and then put in an SQLite database). To keep competitors from extracting my dictionary, I'd like to encode all words which are longer than 3 chars with md5. (I don't obfuscate short words and words with rare Russian letters ъ and э , because I'd like to list them in my app). So here is my script which I try to run with perl v5.18.2 on Mac Yosemite: #!/usr/bin/perl