On Thu, 4 Aug 2005, jb wrote:
Nathan Given wrote:
Sorry I forgot this in the original post:
Also, when I query from the command line (from windows), it doesn't work
either (I get some weird characters, but not boxes or question marks).
Welcome to the wonderful world of encodings. Just be glad you're not dealing
with Arabic.
No kidding. At least Arabic support is worlds better now than it was four
years ago when I first started messing with Arabic on the web.
Here's an unfinished vocab system I wrote for BYU's Arabic program,
completely in LAMP:
http://nmelrc.org/vocab/index.php?action=find_word&language=ar&field=word&operator=%3C%3E&value=
Just FYI, I've had a lot better luck displaying Arabic on the web using
HTML entities (e.g. اهلا) rather than the actual
Unicode values. (You can still store it as Unicode in the database and
then use PHP to translate into the HTML entity value.) Looking at your
vocab system, it renders fine in Opera, but Firefox (on my system, at
least), although it renders the glyphs (and right-to-left, even!) it fails
to join the letters when using UTF-8. It will, however, join Arabic
encoded with HTML entities correctly (for whatever bizarre reason).
Alternatively this page: http://www.columbia.edu/kermit/utf8.html
manages to pull it off, perhaps because they specifically say:
<span dir="RTL" lang="AR"> ?
Anyway, good luck. Arabic is a difficult language as it is--the many
different ways of encoding it just serve to make life even more difficult
(as I'm sure you already know) :-) And let me know if you'd like any help
with testing on various platforms.
~ Ross
--
This sentence would be seven words long if it were six words shorter.
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list