On Sunday 17 November 2002 03:12, [EMAIL PROTECTED] wrote:
> Quoting Arie Folger <[EMAIL PROTECTED]>:
> > Hi,
> >
> > I modified phpnuke to allo utf8, and started filling the site with
> > content (although for now the search function has been disabled because I
> > expect it not to do Hebrew yet). Then, after viewing a Hebrew article as
> > html source, I noticed that instead of unicode chararacters I got
> > numbered entities. A quick look at teh MySql table revealed that
> > everything was stored in numbered entities (what a waste of space).
>
> Has your input come from Mozilla? It does that. To make sure, write a cgi
> script (if you don't trust PHP) that displays its input as text/plain, and
> create a form in UTF8 that sends to that script.

Yes, and, having investigated  [EMAIL PROTECTED]'s suggestion:
> Would http://www.php.net/manual/en/function.htmlentities.php help you?
> Look also into get_html_translation_table().

.. I know now that not even that funtion (which, BTW, was not juxtaposed with 
htmlspecialchar() in the php book that comes with quanta 3.0) features in 
phpnuke, so Herouth must be right (but I'll check it today).

Anyway, as far as the main problem:
> > Problem is that paragraphs in numbered entities are not entirely
> > displayed as rtl, in that the paragraphs are left justified and the
> > bulleted lists are backwards, even though the entire section is between
> > <span
> > dir="rtl">...</span> tags.
>
> Spans are not the answer, because bulleted lists are considered "blocked
> entities". Each of them should have a DIR=RTL or an appropriate CSS entry.
> To the best of my knowledge, there is no difference between numbered
> entities and proper characters, because at least theoretically, all
> numbered entities are converted to the proper characters before the
> rendering is done.

I tried that, and it is a solution. Note that adding a dir=rtl attribute in 
the body tag will help, too, but will mess up all those left to right blocks. 
Is there something other than span that will have the same effect, including 
on <li> and <p> elements?

Thanks guys, (the php tip and the mozilla tip where both very much 
appreciated,)

Arie

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to