Questions tagged [turkish]

This tag refers to the Turkish language. Use it on questions dealing with text or data written in this language.

The Turkish language, spoken by 80 million people in and around the Republic of Turkey, is the most commonly spoken of the Turkic languages, which span from southeast Europe to northeast Asia.

To read further, here is a Wikipedia article on the Turkish language.

177 questions
31
votes
2 answers

In what JS engines, specifically, are toLowerCase & toUpperCase locale-sensitive?

In the code of some libraries (e.g. AngularJS, the link leads to the specific lines in the code), I can see that custom case-conversion functions are used instead of the standard ones. It's justified by an assumption that in browsers with Turkish…
thorn0
  • 9,362
  • 3
  • 68
  • 96
22
votes
2 answers

Displaying the hex value of a string from a oracle varchar2?

We are having problems with text that is encoded in some different ways but kept in a single column in a table. Long story. On MySQL, I can do "select hex(str) from table where" and I see the bytes of the string exactly as I set them. On Oracle, I…
Ray Kiddy
  • 3,521
  • 3
  • 25
  • 32
14
votes
4 answers

Qt Turkish characters in regular expressions

I want to validate QLineEdit's text with a regular expression. It should allow characters from a to z plus A to Z plus Turkish characters(ğüşöçİĞÜŞÖÇ) plus numbers from 0 to 9. I googled about my problem and found two solutions but neither one…
onurozcelik
  • 1,214
  • 3
  • 21
  • 44
13
votes
2 answers

Handle Turkish uppercase and lowercase correctly, need to modify/override built-in functions?

I am working with multilingual text data, among others with Russian using the Cyrillic alphabet and Turkish. I basically have to compare the words in two files my_file and check_file and if the words in my_file can be found in check_file, write them…
Fable
  • 131
  • 1
  • 5
11
votes
4 answers

How do I override Currency symbols in Java?

I'm trying to print prices in Turkish Liras (ISO 4217 currency code TRY) with Java. When I do Currency curr = Currency.getInstance("TRY"); Locale trLocale = new Locale("tr", "TR"); System.out.println(curr.getSymbol(trLocale)); the output is:…
user110665
  • 111
  • 1
  • 3
9
votes
3 answers

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

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…
Amir E. Aharoni
  • 1,308
  • 2
  • 13
  • 25
9
votes
4 answers

Postgres upper function on turkish character does not return expected result

It looks like postgres upper/lower function does not handle select characters in Turkish character set. select upper('Aaı'), lower('Aaİ') from mytable; returns : AAı, aaİ instead of : AAI, aai Note that normal english characters are converted…
Kiran
  • 3,151
  • 2
  • 20
  • 16
8
votes
4 answers

Python and Turkish capitalization

I have not found a good description on how to handle this problem on windows so I am doing it here. There are two letters in Turkish ı(I) and i (İ) which are incorrectly handled by python. >>> [char for char in 'Mayıs'] ['M', 'a', 'y', 'i',…
minerals
  • 6,090
  • 17
  • 62
  • 107
7
votes
1 answer

toUpperCase on Android is incorrect for two-argument and default Greek and Turkish Locales

I am having trouble with Greek and Turkish when using toUpperCase() with the default locale or more interestingly the two argument Locale constructor. Issue happens on Galaxy Tab S2 Android 5.0.2 (also reproduced on 5.1.1) The Issue is reproducible…
amhest
  • 85
  • 6
7
votes
4 answers

String search with Turkish dotless i

When searching the text Çınaraltı Café for the text Ci using the code NSStringCompareOptions options = NSCaseInsensitiveSearch | NSDiacriticInsensitiveSearch | NSWidthInsensitiveSearch; NSLocale *locale = [NSLocale…
deanWombourne
  • 38,189
  • 13
  • 98
  • 110
6
votes
4 answers

OrientDB having trouble with Unicode, Turkish, and enums

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…
Yasin Okumuş
  • 2,299
  • 7
  • 31
  • 62
6
votes
1 answer

Why is this Turkish character being corrupted when I lowercase it?

I am trying to convert some words that contains Turkish characters to lowercase. Reading words from a file which is utf-8 encoded: with open(filepath,'r', encoding='utf8') as f: text=f.read().lower() When I try to convert to lowercase,…
moth
  • 427
  • 1
  • 4
  • 18
6
votes
3 answers

HTML To PDF Turkish Character Problem

I want to convert a ASP.NET web page to pdf using ITextSharp. I did write some code but I can not make it show the Turkish Characters. Can anyone help me? Here is the code: using System; using System.IO; using iTextSharp.text; using…
user487533
  • 83
  • 1
  • 6
6
votes
4 answers

Turkish character encoding

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,…
Alkindus
  • 2,064
  • 2
  • 16
  • 16
6
votes
1 answer

lower case of turkish character dotted i

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…
ikirankumar
  • 115
  • 1
  • 7
1
2 3
11 12