Questions tagged [thai]

The national language of Thailand whose unique script presents various challenges when processing or rendering text.

The national language of Thailand whose unique script presents various challenges when processing or rendering text:

  • Non-spacing / combining marks for some vowels and tone marks
  • Some tone marks stack vertically
  • Some vowel letters are not rendered visually in the same order they are stored logically as data
  • Spaces are not used between words
106 questions
2
votes
1 answer

Getting Thai Character into SAS

I currently have an xlsx file with thai characters in it which is correctly displayed in excel. However when I import this file in SAS EG 4.3 (Also tried in 5.1) the thai characters are displayed as "???" Here is the sample code for the same DATA…
Rohit Acharya
  • 47
  • 1
  • 7
2
votes
1 answer

Vim 7.4 binary for Windows, can't process Thai characters. No multi_byte, has multi_byte_ime/dyn instead?

Like at least one other Vim / gVim 7.4 for Windows user, I'm going 'round and 'round in circles trying to get gVim to properly display Unicode. In my case, I have a .py file that contains Thai characters. For example, เมษายน. If in Windows 7…
RBV
  • 1,367
  • 1
  • 14
  • 33
1
vote
1 answer

Merge Thai letters programmatically

I am trying to add Thai letters in HTMLInput value with javascript, but when I send each letter they are not combined together. For example, I am sending 'ท' and ' ี' and want to see 'ที', instead, I'm seeing 'ท ี'. They are not merging like…
ocavo
  • 82
  • 1
  • 8
1
vote
1 answer

How to set ordering list with Thai character list item type?

I want to show below list itmes with thai character ordering - ก. Lorem Ipsum dolor ข. Lorem Ipsum dolor ค. Lorem Ipsum dolor I have tried with list-style-type:thai; but this is showing thai numbers in list.
Rakibul Islam
  • 679
  • 9
  • 18
1
vote
1 answer

Replace string only if all characters match (Thai)

The problem is that มาก technically is in มาก็. Because มาก็ is มาก + ็. So when I do "แชมพูมาก็เยอะ".replace("มาก", " X ") I end up with แชมพู X ็เยอะ And what I want แชมพู X เยอะ What I really want is to force the last character ก็ to count…
jontelang
  • 589
  • 4
  • 17
1
vote
0 answers

preq_replace automatically adds single quote in Thai language

My intention is to breaks groups of 50 chars that do not contain spaces with a \n My code is like this: $string= preg_replace('/([^\s<>]{50})(?=[^\s])/u', "$1\n$2", '[ติดต่อนัดหมายชมโครงการหรือสอบถามข้อมูลเพิ่มเติมที่]'); And the result adds \n and…
Nhat Dang
  • 15
  • 1
  • 7
1
vote
1 answer

How to read and show Thai language from RSS in android 2.1?

I am using 2.1. I am reading a RSS like like one. What I thinking is I have to change encoding? "e.g InputStream inputStream = new ByteArrayInputStream(xmlResponse.getBytes("UTF-8"));" Or I have to set TextView Font tp a Thai font?
Arslan Anwar
  • 18,746
  • 19
  • 76
  • 105
1
vote
0 answers

How to sort Thai language array of strings in Java

Tried with Collections.sort() method - incorrect result returned String array input is: จัดลำดับใหม่ ย้าย ย้ายออก ลบ เปลี่ยนชื่อ เพิ่ม แทรก Expected output is: เพิ่ม ลบ แทรก ย้าย ย้ายออก เปลี่ยนชื่อ จัดลำดับใหม่
1
vote
6 answers

Thai language is not showing in Java output

Unable to print Thai string value in Java console public static void main(String [] args){ String engParam = "Beautiful"; String thaiParam = "สวย"; System.out.println("Output :" + engParam + ":::" + thaiParam);} Output is showing…
AritraDB
  • 315
  • 4
  • 13
1
vote
1 answer

Python requests Json body includes some thai values, needs to be encoded as it is

I have some json containing some thai values. It looks something like { "TitleName": "คุณ", "FirstName": "Simar" } I need to make a Http POST request with this json body with the exact thai value.I am using Python 3 requests library to make…
S.K
  • 480
  • 1
  • 4
  • 19
1
vote
1 answer

How can i check string is Thai language that return boolean like isalpha()

I'm trying to check str that is only Thai character or not by using regex or any if it can solve I'm trying to use re.compile(u"[^\u0E00-\u0E7F']|^'|'$|''") ret = regexp_thai.sub("", s) to slice another language or digit by the way it just only…
1
vote
1 answer

Thai language Locale Setting problem in the android

I have some problem of localization.I have some content which have both Thai and english. when i run in the android2.1 Thai language show as Boxes. so have set that Thai language as locale in my activity as below Locale local=new Locale("th","TH"); …
pmms
  • 183
  • 2
  • 5
  • 17
1
vote
2 answers

Parse Thai Name into First Last

I need to parse a list of FullNames into First and Last Name. If a middle name is included, it should be included in the fist name field. John Smith would be: FirstName = John LastName = Smith John J. Smith would be: FirstName = John J. LastName…
Mark
  • 53
  • 6
1
vote
2 answers

C# displaying Thai in a textbox

I am creating an App that will display Unicode into a Text box and a picture box. I have some issues when I try to use Thai, I do not speak Thai but know the rules allow me to have a character and then on top of it a max of two other marks. I try…
user3884423
  • 556
  • 1
  • 5
  • 20
1
vote
1 answer

Search input GET/POST data not able to comprehend with utf8_unicode_ci Thai language data from MySQL DB

I have a Thai language content in m MySQL Database with collation utf8_unicode_ci i have used the following to display it correctly on my webpage