|
From: Stefan S. <ze...@ze...> - 2001-03-30 12:42:23
|
On Fri, Mar 30, 2001 at 03:19:04PM +0300, Alessio Bragadini wrote: > > One of the point of Slash is to have less-computer-literated people work > with the system with no troubles. Asking them to change characters they > have on their keyboard with HTML entities is not very popular and > probably not useful. Is it possible/reasonable to have a conversion from > special chars to entities built in the admin interface? > Using HTML::Entities all this is no problem at all (despite the work to use it consistently ... ;-) ). Just do a decode_entities() followed by a encode_entities() for every text-input. Sure it would be better to *not* store HTML-entities in the DB. With encode_entities() you could generate them everytime some text from the db ist to be sent over HTTP. But all of this doesn't have to do anything with the problem I have: encode_entities() can't convert UTF-8 encoded strings :-( And I still think that XML::Parser returns all strings in UTF-8 after doing a parse() regardless the encoding of the strings before. If you still don't believe have a look at http://wurbel.spline.de and select the "Heise Newsticker"-box from "Benutzeraccount" on the left. (And for sure p.e. mozilla can display umlauts without the need for them being encoded) Greets Steve |