1 |
On Sun, 20 Jul 2008 22:29:15 +0200 |
2 |
David Sveningsson wrote: |
3 |
|
4 |
> Citerar "David Relson" <relson@×××××××××××××.com>: |
5 |
> |
6 |
> > I'm using emacs.22.1 and it's having trouble displaying asian |
7 |
> > languages, specifically chinese and korean. |
8 |
> > |
9 |
> > From the menus, using Options//Mule//ShowMultiLingualText, displays |
10 |
> > Japanese correctly but shows boxes for Chinese and Korean |
11 |
> > characters. |
12 |
> > |
13 |
> > Similarly, I've got a HelloWorld.java program that displays "Hello |
14 |
> > World" in English, Chinese, Japanese, and Korean. This file displays |
15 |
> > perfectly using Eclipse. Emacs displays the japanese characters |
16 |
> > without any problem. 4 of the 5 chinese characters are displayed |
17 |
> > properly, with the 5th showing as a box. All 8 korean characters |
18 |
> > show up as boxes. |
19 |
> > |
20 |
> > FWIW, the strings show up properly in my mail reader (Claws-Mail). |
21 |
> > The strings are: |
22 |
> > |
23 |
> > zh: "____________" |
24 |
> > ja: "_____________________" |
25 |
> > ko: "____________ ______" |
26 |
> > |
27 |
> > Can anybody identfy what's wrong and point me toward a solution? |
28 |
> > |
29 |
> > Thanks. |
30 |
> > |
31 |
> > David |
32 |
> > |
33 |
> > |
34 |
> |
35 |
> This sounds like a font issue to me. Can you see the characters |
36 |
> correctly if you cat the files? |
37 |
|
38 |
Hi David, |
39 |
|
40 |
Using a Gnome terminal and the default character set "Current Local |
41 |
Ansi_X3.4-1968" all the asian characters are bad. Using "Unicode |
42 |
(UTF-8)" all look good. So cat'ing _does_ work properly. |
43 |
|
44 |
On the plus side, being able to display correctly in (1) a Gnome |
45 |
terminal and (2) in Eclipse's source code window (which uses |
46 |
"Monospace") and (3) in a Claws-Mail window indicates that all needed |
47 |
fonts are available. |
48 |
|
49 |
On the minus side, e experiments to change emacs' mule encoding to |
50 |
ascii, chinese, and utf-8 don't seem to have any effect :-< |
51 |
|
52 |
And in an emacs *shell* window (with "mule...set UTF-8", the strings |
53 |
show up like: |
54 |
|
55 |
String sh = "zh: \344\270\226\347\225u"\345\245\275"; |
56 |
|
57 |
which interprets as the octal codes corresponding to UTF-8 char. |
58 |
|
59 |
David |