Little boxes instead of thai characters
Submitted by Wednesday, 31 December, 2008 - 12:08
on
I am unable to enter Thai characters into jEdit, and jEdit no longer displays Thai characters, but little square boxes instead. The files I'm looking at are loaded as utf-8.
I show below various parameters of my system. I had to set the locale by hand. No matter what I tried I could not get the system to do it.
I have a java based dictionary program as well, LEXiTRON, which will display Thai characters but will not allow me to enter them. OpenOffice, Text Editor, command line, Firefox, Thunderbird... no problems.
So I think it's java.
Anyone have any insight?
Thanks in advance.
jfl@ws0:~$ uname -a
Linux ws0 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux
jfl@ws0:~$ jedit -version
Warning: $JAVA_HOME environment variable not set! Consider setting it.
Attempting to locate java...
Found a virtual machine at: /usr/bin/java...
jfl@ws0:~$ jEdit 4.3pre16
jfl@ws0:~$ java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
jfl@ws0:~$ locale
LANG=th_TH.UTF-8
LC_CTYPE="th_TH.UTF-8"
LC_NUMERIC="th_TH.UTF-8"
LC_TIME="th_TH.UTF-8"
LC_COLLATE="th_TH.UTF-8"
LC_MONETARY="th_TH.UTF-8"
LC_MESSAGES="th_TH.UTF-8"
LC_PAPER="th_TH.UTF-8"
LC_NAME="th_TH.UTF-8"
LC_ADDRESS="th_TH.UTF-8"
LC_TELEPHONE="th_TH.UTF-8"
LC_MEASUREMENT="th_TH.UTF-8"
LC_IDENTIFICATION="th_TH.UTF-8"
LC_ALL=
jfl@ws0:~$ locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX
th_TH
th_TH.tis620
th_TH.utf8
jfl@ws0:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
#LANGUAGE="en_US:en"
#LANG="en_US.UTF-8"
LANGUAGE="th_TH:th"
LANG="th_TH.UTF-8"
I show below various parameters of my system. I had to set the locale by hand. No matter what I tried I could not get the system to do it.
I have a java based dictionary program as well, LEXiTRON, which will display Thai characters but will not allow me to enter them. OpenOffice, Text Editor, command line, Firefox, Thunderbird... no problems.
So I think it's java.
Anyone have any insight?
Thanks in advance.
jfl@ws0:~$ uname -a
Linux ws0 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux
jfl@ws0:~$ jedit -version
Warning: $JAVA_HOME environment variable not set! Consider setting it.
Attempting to locate java...
Found a virtual machine at: /usr/bin/java...
jfl@ws0:~$ jEdit 4.3pre16
jfl@ws0:~$ java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
jfl@ws0:~$ locale
LANG=th_TH.UTF-8
LC_CTYPE="th_TH.UTF-8"
LC_NUMERIC="th_TH.UTF-8"
LC_TIME="th_TH.UTF-8"
LC_COLLATE="th_TH.UTF-8"
LC_MONETARY="th_TH.UTF-8"
LC_MESSAGES="th_TH.UTF-8"
LC_PAPER="th_TH.UTF-8"
LC_NAME="th_TH.UTF-8"
LC_ADDRESS="th_TH.UTF-8"
LC_TELEPHONE="th_TH.UTF-8"
LC_MEASUREMENT="th_TH.UTF-8"
LC_IDENTIFICATION="th_TH.UTF-8"
LC_ALL=
jfl@ws0:~$ locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX
th_TH
th_TH.tis620
th_TH.utf8
jfl@ws0:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
#LANGUAGE="en_US:en"
#LANG="en_US.UTF-8"
LANGUAGE="th_TH:th"
LANG="th_TH.UTF-8"