Re: Problem with HTML special characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michelle Konzack schreef:
************************************************************************
*       Do not Cc: me, because I READ THIS LIST, if I write here       *
*    Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe    *
************************************************************************

LIKE I CARE. hack your mail server / mail client / whatever if it bother's
you so much.

BTW it's the list that's being CC'ed

Hello *,

On my Website I have a NEWS section which I can  edit  On-Line  over  my
Web-Interface but I have a problem with umlauts.

I can enter the "ü" as "&uulm;" and it is saved as  such  and  it  works
properly but, if I now want to re-edit the NEWS, it is schown as "ü"  in
the input field of the <TEXTAREA>.  <grmpf>

Is there a command/function which can convert a whole text  that  it  is
shown correctly with all "&...;" sequences?

your going about it all wrong. you should enter "ü", "ü" should be in the
database and if your output encoding requires it "ü" should be entized
(including in the textarea) to "&uulm;" when you output the content.

you can hack your way roung it by double entitizing so that "&uulm;" becomes
"&amp;uulm;" in the source (between <textarea> and </textarea> when the
editor page is output. you'll probably have to use a nasty little regexp for
that in order to avoid double entizing "&amp;" into "&amp;amp;"
(hint: negative lookahead assertion)

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux