cyrillic

I18n and Passwords that aren't US-ASCII, Latin1, or Win1252

How do you handle passwords for services when the user enters something that is best represented in Unicode or some other non-Latin character encoding? Specifically, can you use a Cyrillic password as a password to Oracle? What do you do to verify a user's password against a Windows authentication mechanism if the password is provided a...

Cyrillic characters in PHP's json_encode

I'm trying to encode Cyrillic UTF-8 array to JSON string using php's function json_encode. The sample code looks like this: <?php $arr = array( 'едно' => 'първи', 'две' => 'втори' ); $str = json_encode($arr); echo $str; ?> It works fine but the result of the script is represented as:...

IronPython 2.6 RC2: Cyrillic character and -X:TabCompletion switch

Cyrillic characters are displayed incorrect while entering in interactive mode if interpreter was started with -X:TabCompletion switch. It looks like that: s="????" ...

MS Access database shows ??? when I enter Cyrillic characters

Hi everyone, I have an Access database, and when I write Cyrillic characters in any table, the characters are saved like ??? symbols. How is this possible? This occurs if I have system-locale set on western code page, and if I switch to Russian locale, it works correctly. I don't understand why it doesn't works with western locals? Thi...

How to transliterate Cyrillic to Latin text

I have a method which turns any Latin text (e.g. English, French, German, Polish) into its slug form, e.g. "Alpha Bravo Charlie" => "alpha-bravo-charlie" But it can't work for Cyrillic text (e.g. Russian), so what I'm wanting to do is transliterate the Cyrillic text to Latin characters, then slugify that. Does anyone have a way to do ...

Reading file with cyrillic

Hi guys, I have to open file with cyrillic symbols. I've encoded file into utf8. Here is example: en: Couldn't your family afford a costume for you   ru: Не ваша семья позволить себе костюм для вас How do I open file: ifstream readFile(fileData.c_str()); while (!readFile.eof()) { std::getline(readFile, buffer); ... } T...

Serbian characters clipboard problem

Hi, One of my clients needs to post Serbian (cyrillic) text into WordPress weblog by copying it from the MS Word document into WordPress rich text editor. For some reason, all cyrillic characters are converted into their latin equivalents when we paste it into rich editor. The same problem occurs when we try to paste the text into Notepa...

How can I convert Cyrillic stored as LATIN1 ( sql ) to true UTF8 Cyrillic with iconv?

I have a SQL dump file consisting of incorrectly stored Cyrillic Russian ( WINDOWS-1251 ) text, example Èðàíñêèå which should properly be displayed as Иранские. In the past I have successfully converted the sql file but memory fails in what I did and in what order. Logically it would make sense that since it's stored in LATIN1 I would ...

$_GET encoding problem with cyrillic text

I'm trying this code (on my local web server) <?php echo 'the word is / думата е '.$_GET['word']; ?> but I get corrupted result when enter ?word=проба the word is / думата е ���� The document is saved as 'UTF-8 without BOM' and headers are also UTF-8. I have tried urlencode() and urldecode() but the effect was same. When upload it ...

Cyrillic characters from javascript cookie to php output via $_COOKIE

When i'm trying to put russian text in cookie via javascript and then output it via php it returns: %u043F%u0440%u043E%u0432%u0435%u0440%u043A%u0430 How to decode this to normal cyrillic characters? This is the function i'm using to pass to document.cookie: function setCookie(c_name,val,c_expiredays,c_path,c_domain,c_secure) { v...

java improper cyrillic string

Hi, I use JExcel API to read excel file and then I stored them into an ArrayList. Then I insert them into a database. My array list contains cyrillic strings and the problem is these strings do not have inserted into database properly. As long as I have seen, other people can print out cyrillic strings into a standard output properly bu...

Dectect ASCII codes for asian double byte / cyrillic character sets?

Is it possible to detect if an ascii character belongs to Asian double byte or Cyrillic character sets? Perhaps specific code ranges? I've googled, but not finding anything at first glance. There's an RSS feed I'm tapping into that has the locale set as 'en-gb'. But there are some Asian double byte characters in the feed itself - which ...

How to prepare Cyrilic and other variables for storing into MySql DB? (PHP)

How to prepare Cyrilic and other variables for storing into MySql DB? (PHP) So I need realy simple way to prepare recived from browser $_GET[string] variables for storing into DB. How to do such thing? ...

Encoding problem in Java Server Side application.

Hi! I have following problem - i`m running Java WS application. The server side (Axis2 WS Modules on Apache Tomcat) is running at Ubuntu server. The problem is when i get some information from client side in cyrilic and store in database it goes like "?????". If i add data in db directly(From Remote MYSQL Console - there is NO problem). ...

Loading url with cyrillic symbols

Hi guys, I have to load some url with cyrillic symbols. My script should work with this: http://wincode.org/%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5/ If I'll use this in browser it would replaced into normal symbols, but urllib code fails with 404 error. How to decode correctly th...

Python: Copying files with special characters in path

Hi is there any possibility in Python 2.5 to copy files having special chars (Japanese chars, cyrillic letters) in their path? shutil.copy cannot handle this. here is some example code: import copy, os,shutil,sys fname=os.getenv("USERPROFILE")+"\\Desktop\\testfile.txt" print fname print "type of fname: "+str(type(fname)) fname0 = unico...

How can I convert Cyrillic string into English in c#

Is it posible to convert Cyrillic string to English(Latin) in c#? For example I need to convert "Петролеум" in "Petroleum". Plus I forgot to mention that if I have Cyrillic string it need to stay like that, so can I somehow check that? ...

Flex Cyrillic localization

I've defined a Russian localization file but when setting the locale all I get is ? symbols... When creating a sample flex app with Cyrillic characters they are displayed just fine, but somehow setting the locale does no work. Any ideas? ...

Problem searching my SQLite database which contains cyrillic data

Hi, I have a problem searching my SQLite database, which contains data written with cyrillic characters. If the key word is also cyrillic, then everything is ok, but if not, then I can`t get the result in my Android application. Does anyone have an idea how can I implement searching the cyrilic data no matter the charset of the keywor...

Cyrillic data in MS SQL

everything was working fine while the database of my asp.net mvc 2 site was in the app_data folder , after i transfered it to sqlserver express all the Cyrillic data i added after that appears in ????? :( I'm using nvarchar for my fields and collation is set to Cyrillic and yet .. ????? any suggestions are appreciated edit :// [H...