turkish

Javascript regex insensitive turkish character issue

笑着哭i 提交于 2019-12-11 11:02:42
问题 i'm using regex for filtering some contents. var word = new RegExp(filterWord,"gi");// "gi" means Global and insensitive content = content.replace(word, "");//removes "word" from content This code works properly but when regex get uppercase "İ" it dont replace word. ex: if filterWord = istanbul and content = "İstanbul"; Above code not working properly , if i write istanbul to İstanbul ,it is working but this time it is not insensitive , how can i solve this problem ? 回答1: How regEx works with

Turkish character encoding with MySQL

梦想与她 提交于 2019-12-10 22:27:50
问题 I'm having issues with turkish characters as I mentioned in title. I created a function on MySQL: DELIMITER $$ CREATE DEFINER=`root`@`localhost` FUNCTION `ilgiAlaniFunc`( idKullanici INT, ilgi_alani_ismi varchar(255) CHARSET utf8 COLLATE utf8_turkish_ci ) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_turkish_ci READS SQL DATA DETERMINISTIC BEGIN -- Function logic here DECLARE ret int DEFAULT -1; select id Into ret from ilgi_alanlari where ilgi_alani_adi=ilgi_alani_ismi limit 1; IF(ret = -1)

Regular Expression Doesn't Work Properly With Turkish Characters

淺唱寂寞╮ 提交于 2019-12-10 19:35:45
问题 I write a regex that should extracts following patterns; "çççoookkk gggüüüzzzeeelll" (it means vvveeerrryyy gggoooddd with turkish characters "ç" and "ü") "ccccoookkk ggguuuzzzeeelll" (it means the same but with english characters "c" and "u") here is the regular expressions i'm trying; "\b[çc]+o+k+\sg+[üu]+z+e+l+\b" : this works in english but not in turkish characters "çok" : finds "çok" but when i try "ç+o+k+" doesn't work for "çççoookkk", it finds "çoookkk" "güzel" : finds "güzel" but

Turkish character encoding

天涯浪子 提交于 2019-12-10 15:04:07
问题 I try to create new sentence from different list items. Its giving error when I print it by unicode. I can print it normally (without unicode). When I try to post it to the web site its rasing same error. I tought that if I can fix it with unicode, it will work when ı post it to the website. p=['Bu', 'Şu'] k=['yazı','makale'] t=['hoş','ilgiç'] connect='%s %s %s'%(p[randint(0,len(p)-1)],k[randint(0,len(k)-1)],t[randint(0,len(t)-1)]) print unicode(connect) And the output is : Error:

Problems with Turkish SQL Collation (Turkish “I”)

不问归期 提交于 2019-12-10 14:51:19
问题 I'm having problems with our MSSQL database set to any of the Turkish Collations. Becuase of the "Turkish I" problem, none of our queries containing an 'i' in them are working correctly. For example, if we have a table called "Unit" with a column "UnitID" defined in that case, the query "select unitid from unit" no longer works because the lower case "i" in "id" differs from the defined capital I in "UnitID". The error message would read "Invalid column name 'unitid'." I know that this is

OrientDB having trouble with Unicode, Turkish, and enums

旧时模样 提交于 2019-12-10 13:39:38
问题 I am using a lib which has an enum type with consts like these; Type.SHORT Type.LONG Type.FLOAT Type.STRING While I am debugging in Eclipse, I got an error: No enum const class Type.STRİNG As I am using a Turkish system, there is a problem on working i>İ but as this is an enum const, even though I put every attributes as UTF-8, nothing could get that STRING is what Eclipse should look for. But it still looks for STRİNG and it can't find and I can't use that. What must I do for that? Project >

Turkish character in asp.net

浪尽此生 提交于 2019-12-10 10:44:18
问题 I faced a strange problem while coding a Turkish site... In my vb.net code I use a vb function StrConv(s, VbStrConv.ProperCase) where s is the string that needs to be propercased. For the Turkish site, the "ı" character is not properly propercased. Do you have any ideas how to solve this? Thanks. 回答1: This (infamous) case is known as the Turkish I Problem. Jeff Atwood has written about it: What's wrong with Turkey? If you uppercase a Turkish lowercase dotless i, it becomes the uppercase

What's the expected outcome of uppercasing embedded English words in Turkish text?

折月煮酒 提交于 2019-12-10 10:43:46
问题 I am aware of the Turkish "I" problem, where uppercasing of "i" is different in Turkish and in English. However, does Turkish commonly embed foreign words (e.g. English names) in Turkish text? For example let's say someone embeds the text "Microsoft Windows" in otherwise Turkish text and I'd like to uppercase the text. Should the "i"'s in the English words (company and product) be uppercased using English rules or using Turkish rules? Or would the English word already be such a form that

How to set locale in JavaScript, for example for toLocaleUpperCase()?

前提是你 提交于 2019-12-10 02:38:17
问题 I'd like to use the JavaScript toLocaleUpperCase() method to make sure that the capitalization works correctly for the Turkish language. I cannot be sure, however, that Turkish will be set as the user's locale. Is there a way in modern browsers to set the locale in run time, if I know for sure that the string is in Turkish? (I ran into this problem while thinking about Turkish, but actually it can be any other language.) 回答1: There isn't really anything much out there but I came across this

Turkish Identity Number Verification in Swift

那年仲夏 提交于 2019-12-07 22:41:16
问题 How can I make sure that the given text is Turkish Identity Number? I have seen js version here and phthon version here Turkish Identity Verification is not checks only if its numeric, it has some other functions too. Let me be more clear, It is numeric and has 11 digits. For example Let assume that first 9 digits are represented by d, and the last ones represented by c: Identity Number = d1 d2 d3 d4 d5 d6 d7 d8 d9 c1 c2 10th digit must be, c1 = ( (d1 + d3 + d5 + d7 + d9) * 7 - (d2 + d4 + d6