jEdit Community - Resources for users of the jEdit Text Editor
Little boxes instead of thai characters
Submitted by jfmxl on Wednesday, 31 December, 2008 - 12:08
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"
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
If there is anyone out there who might help, I'd appreciate it.
by jfmxl on Sun, 04/01/2009 - 03:13
When I type 'sawasdee krup' in Thai into gedit, I see it rendered correctly. When I type the same into jEdit I see the little square boxes. When I save the two files and open them in gedit, they are rendered correctly and identically. When I save the two files and open them in jEdit, they are rendered incorrectly and identically. When I run 'od file.txt > file-od.txt' on each of the files the two output files are identical. When, as I saw suggested somewhere on the web, I use the jEdit utilities->troubleshooting->keyboard tester facility, I get Event KEY_PRESSED,keyCode=0x0,keyChar=0xffff,modifiers=0x0,consumed=0 filtered Event KEY_RELEASED,keyCode=0x0,keyChar=0xffff,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x4c,keyChar=0xe2a,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe2a,modifiers=0x0,consumed=0 passed ==> Translated to <0,e2a> Event KEY_RELEASED,keyCode=0x4c,keyChar=0x6c,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x3b,keyChar=0xe27,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe27,modifiers=0x0,consumed=0 passed ==> Translated to <0,e27> Event KEY_RELEASED,keyCode=0x3b,keyChar=0x3b,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x59,keyChar=0xe31,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe31,modifiers=0x0,consumed=0 passed ==> Translated to <0,e31> Event KEY_RELEASED,keyCode=0x59,keyChar=0x79,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x4c,keyChar=0xe2a,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe2a,modifiers=0x0,consumed=0 passed ==> Translated to <0,e2a> Event KEY_RELEASED,keyCode=0x4c,keyChar=0x6c,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x46,keyChar=0xe14,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe14,modifiers=0x0,consumed=0 passed ==> Translated to <0,e14> Event KEY_RELEASED,keyCode=0x46,keyChar=0x66,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x55,keyChar=0xe35,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe35,modifiers=0x0,consumed=0 passed ==> Translated to <0,e35> Event KEY_RELEASED,keyCode=0x55,keyChar=0x75,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x38,keyChar=0xe04,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe04,modifiers=0x0,consumed=0 passed ==> Translated to <0,e04> Event KEY_RELEASED,keyCode=0x38,keyChar=0x38,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x49,keyChar=0xe23,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe23,modifiers=0x0,consumed=0 passed ==> Translated to <0,e23> Event KEY_RELEASED,keyCode=0x49,keyChar=0x69,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x59,keyChar=0xe31,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe31,modifiers=0x0,consumed=0 passed ==> Translated to <0,e31> Event KEY_RELEASED,keyCode=0x59,keyChar=0x79,modifiers=0x0,consumed=0 passed Event KEY_PRESSED,keyCode=0x5b,keyChar=0xe1a,modifiers=0x0,consumed=0 filtered Event KEY_TYPED,keyCode=0x0,keyChar=0xe1a,modifiers=0x0,consumed=0 passed ==> Translated to <0,e1a> Event KEY_RELEASED,keyCode=0x5b,keyChar=0x5b,modifiers=0x0,consumed=0 passed LEXiTRON now works correctly, so I think it's jEdit. If there is anyone out there who might help, I'd appreciate it.
Used to work with Ubuntu 7.10 and JEdit4.3pre11
by jfmxl on Thu, 01/01/2009 - 12:46
Used to work with Ubuntu 7.10 and JEdit4.3pre11
 
Is there anywhere else I might go to get help with my problem?
by jfmxl on Fri, 02/01/2009 - 08:38
Is there anywhere else I might go to get help with my problem?
 
Hi, I'm not quite sure ab
by elberry on Tue, 06/01/2009 - 00:29
Hi,
I'm not quite sure about this one. You could definitely try the user's and developer's mailing lists, but if it's a Java issue, I'm not sure if they're going to be able to help much.

https://sourceforge.net/mail/?group_id=588

You could also try the Java forums and see if there's any posts about similar issues.

http://forums.java.net/jive/index.jspa

Sorry couldn't be more help.

The only think I can think of is to ask about the font you are using. Have you tried changing the fonts to something other than the default?

Learn from the past. Live in the present. Plan for the future.
11101000
Blog
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293