Re: Can't set window titles in Japanese
Re: Can't set window titles in Japanese
- Subject: Re: Can't set window titles in Japanese
- From: John Harper <email@hidden>
- Date: Thu, 24 Apr 2003 10:21:14 -0700
On Thursday, April 24, 2003, at 10:02, Dave Williss wrote:
* Convert the title to COMPOUND_TEXT and set the
XtNtitle resource of the shell. Set the XtNtitleEncoding
resource of the shell to the atom COMPOUND_TEXT
(use XInternAtom to create the atom) -- No go for
anything but stuff in the ASCII range
* Call XSetWMName, giving it the COMPOUND_TEXT
title string and encoding. Same result as above.
COMPOUND_TEXT is broken right now, it should be fixed in a future
release
* Convert the title to UTF-8 and call XSetTextProperty
to set the _NET_WM_NAME property of the window.
The encoding is "UTF8_STRING" converted to an Atom.
This works for Russian, Greek, and even Arabic! But
Japanese shows up as little boxes instead of Kanji glyphs
this should work. Are you sure the font you're using has all the glyphs
defined?
I am attaching a small C program which demonstrates the
problem and will file a bug report with Apple as soon as I
send this.
could you send this to me? the mailing list software deleted it..
thanks,
John
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.