turkish

Turkish character in asp.net

坚强是说给别人听的谎言 提交于 2019-12-06 15:10:09
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. 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 English I. Then, if you lowercase that, it becomes an English lowercase dotted i. (That is, the operation is not

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

纵然是瞬间 提交于 2019-12-06 13:02:41
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 uppercasing/lowercasing of it using Turkish rules would give the expected results for Turkish speakers? Yes

Turkish Identity Number Verification in Swift

你。 提交于 2019-12-06 11:24:01
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 + d8) ) mod10 11th must be, c2 = ( d1 + d2 + d3 + d4 + d5 + d6 + d7 + d8 + d9 + c1 ) mod10 and it never

Javascript convert unicode string to “Title Case”

房东的猫 提交于 2019-12-05 15:03:33
I have a javascript case conversion problem which I cannot solve due to non-English letters. My main concern is the Turkish alphabet. What I need to do is this: hello world => Hello World HELLO WORLD => Hello World hELLO wOrLd => Hello World Here is what I've accomplished so far: String.prototype.turkishToUpper = function(){ var stringlow = this; var letterslow = { 'i': 'İ', 'ş': 'Ş', 'ğ': 'Ğ', 'ü': 'Ü', 'ö': 'Ö', 'ç': 'Ç', 'ı': 'I' }; stringlow = stringlow.replace(/(([iışğüçö]))/g, function(letterlow){ return letterslow[letterlow]; }) return stringlow.toUpperCase(); } String.prototype

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

独自空忆成欢 提交于 2019-12-05 02:36:02
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.) There isn't really anything much out there but I came across this JavaScript setlocale function script that you might find useful. You unfortunately cannot set locale during

Java mail problem with Turkish characters

别等时光非礼了梦想. 提交于 2019-12-02 04:30:18
问题 I have problem of showing Turkish characters in mail sent with Java code. The characters are shown as question marks (?) in mail. Message msg = new MimeMessage(mailSession); msg.setHeader("Content-Encoding","ISO-8859-9"); msg.setFrom(new InternetAddress(from)); InternetAddress[] address = {new InternetAddress(to)}; msg.setRecipients(Message.RecipientType.TO, address); msg.setSubject(subject,"iso-8859-9"); msg.setSentDate(new Date()); msg.setContent(messageText, "text/html;ISO-8859-9"); 回答1:

Java mail problem with Turkish characters

和自甴很熟 提交于 2019-12-01 23:27:49
I have problem of showing Turkish characters in mail sent with Java code. The characters are shown as question marks (?) in mail. Message msg = new MimeMessage(mailSession); msg.setHeader("Content-Encoding","ISO-8859-9"); msg.setFrom(new InternetAddress(from)); InternetAddress[] address = {new InternetAddress(to)}; msg.setRecipients(Message.RecipientType.TO, address); msg.setSubject(subject,"iso-8859-9"); msg.setSentDate(new Date()); msg.setContent(messageText, "text/html;ISO-8859-9"); It looks like ISO-8859-9 should be able to handle your Turkish letters alright. Is it possible that the text

Javascript regex insensitive turkish character issue

有些话、适合烂在心里 提交于 2019-11-29 17:21:16
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 ? How regEx works with Small-Case and Upper-Case chars is based on the Hex-Code of the characters and how they are represented in

lower case of turkish character dotted i

南楼画角 提交于 2019-11-29 07:33:26
In Java 6, System.out.println(String.valueOf('\u0130').toLowerCase()); prints i ( u0069 ), but in Java 7 it prints i with double dots ( u0069 u0307 ). I understand it is a Turkish character, but how do I make Java 7 print the same output as v6 using this code? System.out.println(inputText.toLowerCase()); Also make sure that the code can handle international text without hardcoding the toLowerCase function to use only Turkish locale. There is a quite detailed blog post about this i toLowerCase problem Let me try to summarize the essential parts: In Java 7 this method has indeed changed and

Windows Phone character-encoding

蹲街弑〆低调 提交于 2019-11-28 11:39:47
My code is Encoding.GetEncoding("iso-8859-9"); in my Windows Phone project. But "iso-8859-9" is not supported on Windows Phone. How can I fix this problem? http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator I also found this link but I don't know how to use it. To use the program, just type the encoding name and it will generate the class like so: Then make a file for the class somewhere (Copypaste the code generated from the program) and start using it: //Instead of Encoding enc = Encoding.GetEncoding("iso-8859-9"); //do this Encoding enc = new ISO88599Encoding(); /